Forum Moderators: phranque

Message Too Old, No Replies

Webpage Size Checker UA?

         

keyplyr

8:51 am on Oct 6, 2003 (gmt 0)

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




The [searchengineworld.com...] has stopped working for me:

Error Accessing [my_domain.com...] Content-type: text/html

...most likely due to my ban list via .htaccess. Can anyone tell me what tool is being used here so I can remove it from my list? Thanks.

BlueSky

8:56 am on Oct 6, 2003 (gmt 0)

10+ Year Member



libwww-perl/5.65

keyplyr

9:05 am on Oct 6, 2003 (gmt 0)

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



Thanks

keyplyr

9:30 am on Oct 6, 2003 (gmt 0)

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



This doesn't seem to allow the Webpage Size Checker, while still banning it's use from others:

RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/[0-9] [NC]
RewriteCond %{REMOTE_ADDR} !^http://www\.searchengineworld\.com
RewriteRule !^forbidden\.html$ - [F]

Still getting error. What am I doing wrong? Thanks.

keyplyr

6:34 pm on Oct 6, 2003 (gmt 0)

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



Anyone?

Monus

7:06 pm on Oct 6, 2003 (gmt 0)

10+ Year Member



Yes, it's easy.
Change REMOTE_ADDR to REMOTE_HOST

keyplyr

8:28 pm on Oct 6, 2003 (gmt 0)

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



Thanks Monus,

Changed to:

RewriteCond %{REMOTE_HOST} !^http://www\.searchengineworld\.com

Still no good

closed

9:13 pm on Oct 6, 2003 (gmt 0)

10+ Year Member



Try this:

RewriteCond %{REMOTE_ADDR} !^69\.36\.190\.175

keyplyr

10:28 pm on Oct 6, 2003 (gmt 0)

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



Thanks closed, that did the trick.

Monus

10:31 pm on Oct 6, 2003 (gmt 0)

10+ Year Member



Oops its,

RewriteCond %{REMOTE_HOST}!^www\.searchengineworld\.com

but this is better

RewriteCond %{REMOTE_ADDR}!^69\.36\.190\.175$

keyplyr

6:10 am on Oct 7, 2003 (gmt 0)

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



Monus, do I need the "$" anchor, and if so why?

Thanks

Monus

9:31 am on Oct 7, 2003 (gmt 0)

10+ Year Member



The $ tag say that it had to end with '.175'
The ^ tag say that it had to begin with '69.'

In this case don't make it a different but if the IP is for example 69.36.190.17 and you use this RewriteCond

RewriteCond %{REMOTE_ADDR}!^69\.36\.190\.17

The IP's 69.36\.190.170 untill 69.36\.190.179 are than also allowed in this case.

closed

2:06 pm on Oct 7, 2003 (gmt 0)

10+ Year Member



The ^ was necessary to prevent access from 169.36.190.175.

The $ was redundant in this case because 175 is already three digits. You can't, for example, have an address like 69.36.190.1752.