Welcome to WebmasterWorld Guest from 54.167.46.29

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Why should this htaccess fail

Tryin to block domain

     
3:08 am on Jul 1, 2005 (gmt 0)

New User

10+ Year Member

joined:Feb 11, 2004
posts:38
votes: 0


Hi
This just doesn't work.
I've tried lots of variations but nothing seems to help:

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?offenderdomain.com.*$ [NC]
RewriteRule .* htttp://www.yahoo.com [L]

There is nothing alse in the file except the above.

Any ideas?

Thanks

6:49 pm on July 1, 2005 (gmt 0)

New User

10+ Year Member

joined:Feb 11, 2004
posts:38
votes: 0


I left it overnight and now it works. Some sort of delayed server reaction I guess.
1:56 am on July 6, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


When you test such access-control rules, you have to manually flush your browser cache before testing each and every change. Otherwise, your browser simply displays the previously-fetched page contents from its cache, and the request is never sent to your server. If the request isn't sent to your server, then your code can have no effect.

Jim