Hi Remi, When you say "for non-Mozilla User-Agents", do you mean browsers that aren't the Mozilla browser? If so that might be because plenty of other browsers' User-Agent strings also start with "Mozilla...", e.g. An up to date Internet Explorer (on Win Me) sends this header:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90) There's an excellent (and loong) list of user-agent strings categorised by browser name and version at <http://www.pgts.com.au/pgtsj/pgtsj0212d.html> in an HTML table or as a tab-separated ASCII file (very useful). You might want to make your regexp match on something more specific (though judging from the list at the above url it's not clear in the general case what that might be!). You mention in your original email that this is only for your site indexer -- can you make that issue your own made-up User-Agent string to look for? or alternatively find out its exact User-Agent string and match on something not far off that. Apologies if I've misinterpreted the problem, or you've already tried the above suggestions. Ben On Tuesday, 12 August, 2003 05:24, Remi Fasol wrote: > hello. > > i entered this code almost exactly as written, and for > some reason, SessionQuery is not being turned off for > non-Mozilla user agents. > > is there anything else i can try (or perhaps a > suggested technique for tracking down why this > happens)? > > thanks, > remi > > --- Josh Chamas <[EMAIL PROTECTED]> wrote: > > # httpd.conf > > PerlRequire /path/to/startup.pl > > PerlInitHandler My::InitHandler > > > > # startup.pl > > package My::InitHandler; > > use Apache; > > > > sub handler { > > my $r = shift; > > > > unless($r->header_in('User-Agent') =~ > > /^Mozilla/)) { > > $r->dir_config('SessionQuery', 'Off'); > > # you might also set other SessionQuery* > > params to Off here too... > > } > > > > 200; > > } > > > > 1; > > > > If you wanted to skip the startup.pl file, you could > > move this code directly > > to your httpd.conf file in <Perl> sections, or you > > could nicely package this > > handler as a real perl module which you PerlModule > > from httpd.conf. > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Soares tel: +44 (0)131-651 1238 EDINA, Edinburgh University Data Library fax: +44 (0)131-650 3308 Main Library Building, George Square email: [EMAIL PROTECTED] Edinburgh EH8 9LJ, Scotland, UK www: http://edina.ac.uk/ "Hmmm, that makes no sense to me... But then you are very small, perhaps you're right." -- Treebeard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]