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 Mark Forums Read
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 12-05-2007, 01:10 AM   #1
strongdong
Confirmed User
 
Join Date: Sep 2003
Posts: 191
htaccess?

I want to allow hotlinking for some domains but block hotlinking for all others for .flv files...anyone know how to do this? antihotlinking.com does not seem to work
strongdong is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2007, 01:14 AM   #2
AdPatron
No commissions, no fees.
 
Industry Role:
Join Date: Apr 2003
Location: USA
Posts: 17,706
First you need to make sure apache (if you're on a linux server) was configured with RewriteEngine on. If it is, then do a search on google for RewriteEngine and you'll get tons of info on how to stop hotlinking.
AdPatron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2007, 01:15 AM   #3
draude
Confirmed User
 
draude's Avatar
 
Join Date: Nov 2006
Location: ...
Posts: 1,214
try this one -> http://www.javascriptkit.com/howto/htaccess10.shtml
__________________
Web Developer
draude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2007, 02:03 AM   #4
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
Depends on are you going to have a white list or a black list?


In any case, here is mine:

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rhinosthumbs.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rhinoslinks.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?americastgp.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?gofuckyourself.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+)?yahoo.(.+)(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+)?google.(.+)(/)?.*$     [NC]

RewriteRule .*\.(flv)$ - [F,NC]
Notice mine is a white list of allowed sites.
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2007, 02:00 PM   #5
strongdong
Confirmed User
 
Join Date: Sep 2003
Posts: 191
Quote:
Originally Posted by V_RocKs View Post
Depends on are you going to have a white list or a black list?


In any case, here is mine:

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rhinosthumbs.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rhinoslinks.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?americastgp.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?gofuckyourself.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+)?yahoo.(.+)(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+)?google.(.+)(/)?.*$     [NC]

RewriteRule .*\.(flv)$ - [F,NC]
Notice mine is a white list of allowed sites.
so this allows hotlinking from those sites, but disallows it for all others?
strongdong is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-05-2007, 02:07 PM   #6
ne0
Confirmed User
 
Join Date: May 2006
Location: brazil
Posts: 781
Quote:
Originally Posted by strongdong View Post
so this allows hotlinking from those sites, but disallows it for all others?
yes, but it will allow blank referrers too.
this line:
Code:
RewriteCond %{HTTP_REFERER} !^$
if you want to disable any access to it that is not from your domain you should consider removing that too. But note that there are some anti-viruses that will clean up the referrer, not a lot, but could cause your image not to show up for a handful of people.
__________________
hai2u
ne0 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
Thread Tools



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.