I wanna block all visitors coming from:websearch.cs.com RewriteEngine on RewriteCond %{HTTP_REFERER} websearch.cs.com [NC] RewriteRule .* - [F] and put it on site folder (where for example my index.html is and all site files) but it appears not to work ? any better solution. Thanks
Also does it works for blocking keywords RewriteEngine on RewriteCond %{HTTP_REFERER} (viagra) [NC,OR] RewriteRule .* - [F] also does above (first post) removes visitors from all pages of that domain or only main ( i need to restrict all search results). thanks
1. whats the URL / site where you have your .htaccess installed ? 2. make sure the site to exclude EXISTS as posted by you if I enter your search engine URL as below, then I get a redirect to http://webcenters.netscape.compuserve.com/search/default.jsp Code (markup): hence a referrer would show a different referrar site than you published.
If you know their IP address you could try editing your .htaccess file to include: deny from (and add the IP address here)
You have a syntax error in second line: instead: RewriteCond %{HTTP_REFERER} websearch.cs.com [NC] use: RewriteCond %{HTTP_REFERER} websearch\.cs.com [NC] should work ok now...
websearch.cs.com/ is using ip : 205.188.98.199 if u using CSF, enter this ip to deny on CSF and it will blocked from ur server