GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   blocking a domain with htaccess (hitbotter) (https://gfy.com/showthread.php?t=370275)

Darrell 10-11-2004 12:21 PM

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.

Sexzity 10-11-2004 12:23 PM

http://www.htaccesstools.com/

421Fill 10-11-2004 12:24 PM

http://www.htaccesstools.com could help :)

Darrell 10-11-2004 12:30 PM

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.

Fabuleux 10-11-2004 12:33 PM

Check your apache errorlog to see what's wrong :)

Lycanthrope 10-11-2004 12:39 PM

Try this:

^http://(www\.)?offendingdomains.com.*$ [NC,OR]
...

and change .* to ^(.*)$ on your redirect line

Darrell 10-11-2004 01:04 PM

Thanks Lycanthrope, but I still get an error page.

Lycanthrope 10-11-2004 01:07 PM

Did you upload in ASCII mode?

I suppose it is possible Mod Rewrite isn't enabled... check w/ the host

Darrell 10-12-2004 07:20 AM

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