![]() |
![]() |
![]() |
||||
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 |
So Fucking Banned
Join Date: May 2002
Posts: 1,343
|
How to block A DOMAIN using .htaccess
Some jackasses from just 1 domain hotlink my pics. I'd like to know how to set up .htaccess to block just this domain. I get traffic from many sources so typical .htaccess setup of listing domains to access won't work. I just need to block 1 domain.
Any help would be greatly appreciated. Thanks, G |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Dec 2001
Location: London
Posts: 927
|
Just put:
deny from domain.com in .htaccess |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Dec 2001
Location: London
Posts: 927
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
So Fucking Banned
Join Date: May 2002
Posts: 1,343
|
Quote:
Much appreciated, G |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
So Fucking Banned
Join Date: May 2002
Posts: 1,343
|
Quote:
I'd like to just DENY one IP/domain |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
So Fucking Banned
Join Date: May 2002
Posts: 1,343
|
I guess what I need is .htaccess code that ALLOWS HOTLINKING but BLOCKS only the referrers I listed in the .htaccess file.
Can this be done? I allow my users to hotlink but there's just 1 forum site that is out of control! Any help would be appreciated, G |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
Industry Role:
Join Date: Oct 2002
Location: Punta Cana, DR
Posts: 29,592
|
can also deny one IP or adress in Apache config file
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
So Fucking Banned
Join Date: May 2002
Posts: 1,343
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Aug 2002
Location: Orlando, Florida
Posts: 2,051
|
Im not sure if this works...
RewriteCond %{HTTP_REFERER} ^http://.*hotlinker.com.*$ [OR] RewriteRule .[Jj][Pp][Gg]*$ http://yoursponsor.com [L] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
So Fucking Banned
Join Date: May 2002
Posts: 1,343
|
Quote:
so I used the following: RewriteEngine on RewriteCond %{HTTP_REFERER} ^http://IPADDRESS.*$ [OR] RewriteRule .[Jj][Pp][Gg]*$ http://mysponsor.com [L] Am I doing it right? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Too lazy to set a custom title
Industry Role:
Join Date: Oct 2002
Location: Punta Cana, DR
Posts: 29,592
|
Quote:
In that file opened with NOTEPAD, you will see the following: .... # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> ....... change that to: # # Controls who can get stuff from this server. # Order allow,deny Allow from all deny 216.111.154.112 deny www.asshole.com deny asshole.com </Directory> Save the file by selecting in notepad the proper original file, then writing over. Restart Apache. If Apache fails, you have an error. The backup file is then very welcomed.... |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
So Fucking Banned
Join Date: May 2002
Posts: 1,343
|
SteveO, DirectFiesta, Luke,
Thanks for the help. I fixed the problem. G Sharp |
![]() |
![]() ![]() ![]() ![]() ![]() |