![]() |
![]() |
![]() |
||||
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: Sep 2002
Location: Las Vegas
Posts: 208
|
the commies are stealing my BW
I keep getting hotlinked by chinese servers... I've spent probably 20 hours blocking sites individually and i'm tired of it! Is there a htaccess or other easy solution to blocking all traffic incoming from china?
D
__________________
--------------- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2002
Location: Las Vegas
Posts: 208
|
what, nobody?
__________________
--------------- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jun 2001
Location: Apple Valley, MN
Posts: 112
|
Here is an .htaccess file that I use. This should fix your problems with hotlinkers. Be sure to change the XXX.XXX.XXX.XXX to your IP address and domain.com to your own domain name.
Code:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://XXX.XXX.XXX.XXX.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://domain.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp|asx|mpeg|mpg|avi|mov|asf|wmv|tif|png)$ http://www.domain.com [R,NC] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Registered User
Join Date: Aug 2003
Posts: 1
|
Quote:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN RewriteRule ^/*$ /blocked.html [PT,L] </IfModule> The syntax may not be accurate....poor memory. Regards, --A |
|
![]() |
![]() ![]() ![]() ![]() ![]() |