Forum Moderators: phranque

Message Too Old, No Replies

Allowing IPs

         

keyplyr

11:08 pm on Jan 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I block access from a certain UA, but wish to allow from the following IPs:

66.185.161.11
66.185.161.12
66.185.164.11
195.101.51.35
195.101.51.44

Have I combined them properly?


# Blocking conditions here
RewriteCond %{REMOTE_ADDR}!^66\.185\.16[1¦4]\.1[1¦2]
RewriteCond %{REMOTE_ADDR}!^195\.101\.51\.[35¦44]
# Rule here

- OR -

All the UA strings contain the word "SYSTRAN" so is there a method to use this identifier for allowing these hits?


66.185.161.11 - - [01/Jan/2004:12:38:43 -0800] "GET /circle5.html HTTP/1.1" 403 943 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; libwww-perl/5.69; SYSTRAN)"

Thanks.

jdMorgan

12:24 am on Jan 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



keyplyr,

Something like this?


RewriteCond %{HTTP_USER_AGENT} libwww-perl/
RewriteCond %{HTTP_USER_AGENT} !SYSTRAN\)$
RewriteRule - [F]

Disallow user agents containing "libwww-perl" unless user-agent ends with "SYSTRAN)"

Jim

keyplyr

1:11 am on Jan 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks Jim, that was what I was looking for.