![]() |
![]() |
![]() |
||||
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 |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
How to prevent hotlinking using htaccess??
Is there anyway of preventing someone from hotlinking pictures using htaccess?
HELP! My BW bill is huge this month so far...
__________________
I'm just a newbie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
jellyfish
![]() ![]() Join Date: Dec 2003
Posts: 71,528
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Join Date: Aug 2001
Posts: 2,875
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Strength and Honor
Join Date: Jul 2004
Location: Europe
Posts: 16,540
|
thanks for those links.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
So Fucking Banned
Join Date: Aug 2001
Posts: 2,875
|
Quote:
Jon |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
The one and only!
Industry Role:
Join Date: Nov 2002
Location: Atlanta, GA
Posts: 17,761
|
i had the exact same question months ago and this board helped me out.
![]() good luck. big bw bills suck.
__________________
Mandy's Playhouse Her First Fat Girl If you're interested in promoting my sites, ICQ me! 178411921 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
Ok, thanks!
But what about people that type in the browser the images URL directly. Can I redirect them?
__________________
I'm just a newbie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Nov 2002
Location: Michigan
Posts: 1,530
|
It blows my mind that someone that has made 8k posts here does not know how to use htaccess to stop hotlinking. Even the surfers that post here would know how to search google to find out how to prevent it.
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
OU812
Join Date: Feb 2001
Location: California
Posts: 12,651
|
Quote:
![]() ![]()
__________________
Epic CashEpic Cash works for me Solar Cash Paysite Plugin Gallery of the day freesites,POTD,Gallery generator with free hosting |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
I wish .htaccess would work for movies.
__________________
7 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
OU812
Join Date: Feb 2001
Location: California
Posts: 12,651
|
Quote:
![]() yes you can
__________________
Epic CashEpic Cash works for me Solar Cash Paysite Plugin Gallery of the day freesites,POTD,Gallery generator with free hosting |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
I'm not sure if you're fucking with us or you being serious but I'll bite. Doesn't matter if they type the url directly, if you set up .htaccess to redirect to your main page it will redirect them, e.g. a guy types:
http://www.tranza.com/somedir/someimage.jpg he'll be redirected to http://www.tranza.com/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Nov 2002
Location: Michigan
Posts: 1,530
|
Quote:
Code:
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain.com.*$ [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$) RewriteRule ^.*\.wmv.*$ http://domain.com/hotlink.htm [R,L] Code:
<script language='javascript' type='text/javascript'> <!-- //hotlink protection var expires = new Date (); expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000); document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString(); //hotlink protection --> </script> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
Quote:
You can do it that way or use a custom image instead.
__________________
7 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
UNSTOPPABLE
Join Date: Aug 2003
Location: UK :: ICQ# 156068
Posts: 11,569
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Confirmed User
Join Date: Mar 2001
Location: BumFuck Ohio
Posts: 768
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |