|
|
2005-01-22, 09:25 AM | #1 |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
Join Date: Dec 2004
Posts: 50
|
How do I block ONE domain in my htaccess?
I've tried just about anything. Can someone here please, please help me inserting a piece of code that will get rid of traffic from besthardcore.net?
This is my htaccess file as it is now, preventing only hotlinking, but not traffic from this useless tgp or whatever it is: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?sensual-ladies.com(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?catyxxx.com(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.sensual-ladies.com [R,NC] Can someone please help me, rewriting this, so I can just upload it? Each time I try to change it, I end up not having access to my sites, no matter from where I try to gain access. I just need this ONE single domain to get lost as soon as possible. 7hom4s |
2005-01-22, 10:27 AM | #2 |
Rock stars ... is there anything they don't know?
Join Date: Aug 2004
Posts: 10
|
You can use http://www.htaccesstools.com/block-hitbots/
|
2005-01-22, 10:38 AM | #3 | |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
Join Date: Dec 2004
Posts: 50
|
Quote:
7hom4s |
|
2005-01-22, 10:44 AM | #4 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
RewriteEngine on
RewriteCond %{HTTP_REFERER} http://(www\.)?besthardcore.net(/)?.*$ [NC] RewriteRule .* - [F] This will 403 ANY traffic from besthardcore.net. You can define: ErrorDocument 403 http://www.domain.com and send them on their merry way
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2005-01-22, 10:49 AM | #5 | |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
Join Date: Dec 2004
Posts: 50
|
Quote:
7hom4s |
|
2005-01-22, 10:53 AM | #6 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
just paste that snippet into your .htaccess above your anti-hotlink rules
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2005-01-22, 10:59 AM | #7 | |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
Join Date: Dec 2004
Posts: 50
|
Quote:
I'm sorry for being so bad at this, but each time I try anything, nothing works at all. 7hom4s |
|
2005-01-22, 11:00 AM | #8 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
RewriteEngine on
RewriteCond %{HTTP_REFERER} http://(www\.)?besthardcore.net(/)?.*$ [NC] RewriteRule .* - [F] RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?sensual-ladies.com(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?catyxxx.com(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.sensual-ladies.com [R,NC]
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2005-01-22, 11:16 AM | #9 | |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
Join Date: Dec 2004
Posts: 50
|
Quote:
Now it happens again. If I import this & upload it to my host, I end up getting redirected even if I try my main page. Something just goes wrong every single time, I don't get it. 7hom4s |
|
2005-01-23, 06:52 AM | #10 | |
Stupid risks make life worth living
|
Quote:
|
|
2005-01-23, 07:00 AM | #11 | |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
Join Date: Dec 2004
Posts: 50
|
Quote:
7hom4s |
|
2005-01-22, 12:22 PM | #12 | |
Certified Nice Person
|
Quote:
I'm far from knowing what I'm doing, but could it be the lack of a ^ in front of http://(www\.)?besthardcore.net(/)?.*$ [NC] causing the problem? I have that in front of the domains I block. Copy and paste this new line: RewriteCond %{HTTP_REFERER} ^http://(www\.)?besthardcore.net(/)?.*$ [NC] over the current besthardcore.net line in your .htaccess and give it a swing.
__________________
Click here to purchase a bridge I'm selling. |
|
2005-01-22, 11:23 AM | #13 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
you wouldn't get redirected because of those rules. You must have something else in the .htaccess
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2005-01-22, 11:29 AM | #14 | |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
Join Date: Dec 2004
Posts: 50
|
Quote:
7hom4s |
|
|
|