Forum Moderators: open
I'm using:
# Block libwww-perl except from AltaVista, Inktomi, and IA Archiver
RewriteCond %{HTTP_USER_AGENT} libwww-perl/[0-9] [NC]
RewriteCond %{REMOTE_ADDR} !^209\.73\.(1[6-8][0-9]¦19[01])\.
RewriteCond %{REMOTE_ADDR} !^209\.131\.(3[2-9]¦[45][0-9]¦6[0-3])\.
RewriteCond %{REMOTE_ADDR} !^209\.237\.23[2-5]\.
RewriteRule!^(403.*\.html¦robots\.txt)$ - [F]
Jim
<edited>Corrected spaces per following posts.</edit>
[edited by: jdMorgan at 3:09 am (utc) on April 20, 2003]
Andrue
I'll save Jim some time and tell you the forum server omits spaces in some instances. As well as changing a the "¦" which I entered as a straight line.
For him to make these extra typing precautions is the many lines of code he graciously provides is a big PITA.
# Block libwww-perl except from AltaVista, Inktomi, and IA Archiver
RewriteCond %{HTTP_USER_AGENT} libwww-perl/[0-9] [NC]
RewriteCond %{REMOTE_ADDR}!^209\.73\.(1[6-8][0-9]¦19[01])\.
RewriteCond %{REMOTE_ADDR}!^209\.131\.(3[2-9]¦[45][0-9]¦6[0-3])\.
RewriteCond %{REMOTE_ADDR}!^209\.237\.23[2-5]\.
RewriteRule!^(403.*\.html¦robots\.txt)$ - [F] Its amazing there is only one forum that deals with all code flawlessly and its hardly known about.