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 08-20-2003, 12:13 PM   #1
hibbidiji
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
__________________
---------------
hibbidiji is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-20-2003, 12:50 PM   #2
hibbidiji
Confirmed User
 
Join Date: Sep 2002
Location: Las Vegas
Posts: 208
what, nobody?
__________________
---------------
hibbidiji is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-20-2003, 01:29 PM   #3
DerekT
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]
DerekT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-20-2003, 03:45 PM   #4
NakedWorld
Registered User
 
Join Date: Aug 2003
Posts: 1
Quote:
Originally posted by hibbidiji
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
Go to www.maxmind.com. download and install Apache Geo module.

<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
NakedWorld 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.