Welcome to WebmasterWorld Guest from

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)

10+ Year Member

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?



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

10+ Year Member

I left it overnight and now it works. Some sort of delayed server reaction I guess.


1:56 am on Jul 6, 2005 (gmt 0)

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

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.



Featured Threads

Hot Threads This Week

Hot Threads This Month