![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jun 2002
Location: Cyperspaces!
Posts: 1,329
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Super Mario
Industry Role:
Join Date: Nov 2001
Location: Swenson's Avatar
Posts: 19,410
|
http://www.htaccesstools.com could help
![]()
__________________
RELEASE THE EPSTEIN FILES!!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: May 2003
Location: The Netherlands
Posts: 2,543
|
Check your apache errorlog to see what's wrong
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
|
Thanks Lycanthrope, but I still get an error page.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
Did you upload in ASCII mode?
I suppose it is possible Mod Rewrite isn't enabled... check w/ the host |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
|
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] |
![]() |
![]() ![]() ![]() ![]() ![]() |