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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-11-2004, 12:21 PM   #1
Darrell
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.
Darrell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2004, 12:23 PM   #2
Sexzity
Confirmed User
 
Join Date: Jun 2002
Location: Cyperspaces!
Posts: 1,329
http://www.htaccesstools.com/
Sexzity is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2004, 12:24 PM   #3
421Fill
Super Mario
 
421Fill's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Swenson's Avatar
Posts: 19,409
http://www.htaccesstools.com could help
__________________
RELEASE THE EPSTEIN FILES!!!
421Fill is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2004, 12:30 PM   #4
Darrell
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.
Darrell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2004, 12:33 PM   #5
Fabuleux
Confirmed User
 
Join Date: May 2003
Location: The Netherlands
Posts: 2,543
Check your apache errorlog to see what's wrong
__________________
Fabuleux is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2004, 12:39 PM   #6
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
Try this:

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

and change .* to ^(.*)$ on your redirect line
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2004, 01:04 PM   #7
Darrell
Confirmed User
 
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
Thanks Lycanthrope, but I still get an error page.
Darrell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2004, 01:07 PM   #8
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
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
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-12-2004, 07:20 AM   #9
Darrell
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]
Darrell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.