![]() |
blocking a domain with htaccess (hitbotter)
I'm trying to block a domain using htaccess that is hitbotting my site. I've tried using several code variations like
RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://.*site1.com/* [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*site2.com/* [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*site3.com/* [NC] RewriteRule .* http://www.wherever.com [R,L] and whatever I do my site always comes up as either a '500 internal server error' or a 403 forbidden page. What am I doing wrong? I really appreciate any help with this. Thanks. |
|
http://www.htaccesstools.com could help :)
|
Thanks for the replies. I tried the code at http://www.htaccesstools.com/ but I'm still getting the same errors which makes me think I need to change something on the server to use htaccess.
|
Check your apache errorlog to see what's wrong :)
|
Try this:
^http://(www\.)?offendingdomains.com.*$ [NC,OR] ... and change .* to ^(.*)$ on your redirect line |
Thanks Lycanthrope, but I still get an error page.
|
Did you upload in ASCII mode?
I suppose it is possible Mod Rewrite isn't enabled... check w/ the host |
Mod Rewrite is enabled and i did upload in Ascii mode :-)
I got the code below to work and it blocks the domain ok, but also stops UCJ tracking any incoming traffic! Does anybody have any idea why it's stopping UCJ from tracking incoming traffic? Thanks for any replies. Options SymLinksIfOwnerMatch RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://.*site1.com/* [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*site2.com/* [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*site3.com/* [NC] RewriteRule .* http://www.somewhere.com [R,L] |
All times are GMT -7. The time now is 02:31 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123