homepage Welcome to WebmasterWorld Guest from 54.227.146.68
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Why should this htaccess fail
Tryin to block domain
Snookered




msg:1514408
 3:08 am on Jul 1, 2005 (gmt 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

 

Snookered




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

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

jdMorgan




msg:1514410
 1:56 am on Jul 6, 2005 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved