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 01-09-2005, 08:16 AM   #1
tranza
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.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:17 AM   #2
Manowar
jellyfish  
 
Join Date: Dec 2003
Posts: 71,528
http://altlab.com/hotlinking.html

http://www.unixcities.com/apache/index1.html
Manowar is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:17 AM   #3
Jon2
So Fucking Banned
 
Join Date: Aug 2001
Posts: 2,875
http://www.htmlbasix.com/disablehotlinking.shtml

A generator

Jon
Jon2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:19 AM   #4
Dalai lama
Strength and Honor
 
Join Date: Jul 2004
Location: Europe
Posts: 16,540
thanks for those links.
__________________

A program you can trust.
Gallerybooster Run multiply TGPs of 1 script
Dalai lama is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:19 AM   #5
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
http://www.htmlite.com/HTA013.php

http://www.devpapers.com/article/242

http://www.javascriptkit.com/howto/htaccess10.shtml

google is your friend
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:23 AM   #6
Jon2
So Fucking Banned
 
Join Date: Aug 2001
Posts: 2,875
What is google?

Jon
Jon2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:35 AM   #7
MandyBlake
The one and only!
 
MandyBlake's Avatar
 
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
MandyBlake is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:35 AM   #8
tranza
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.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:37 AM   #9
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
its only a bandwidth bill, pay it and stop crying ;)
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:41 AM   #10
vapewiz
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.
vapewiz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:50 AM   #11
jimmyf
OU812
 
Join Date: Feb 2001
Location: California
Posts: 12,651
Quote:
Originally Posted by cutetwink
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.
I know
__________________
Epic CashEpic Cash works for me
Solar Cash Paysite Plugin
Gallery of the day freesites,POTD,Gallery generator with free hosting
jimmyf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:51 AM   #12
kenny
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 7,245
I wish .htaccess would work for movies.
__________________
7
kenny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:52 AM   #13
jimmyf
OU812
 
Join Date: Feb 2001
Location: California
Posts: 12,651
Quote:
Originally Posted by tranza
Ok, thanks!

But what about people that type in the browser the images URL directly. Can I redirect them?
set up your .htaccess and find out







yes you can
__________________
Epic CashEpic Cash works for me
Solar Cash Paysite Plugin
Gallery of the day freesites,POTD,Gallery generator with free hosting

Last edited by jimmyf; 01-09-2005 at 08:54 AM..
jimmyf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:55 AM   #14
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
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/
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:57 AM   #15
vapewiz
Confirmed User
 
Join Date: Nov 2002
Location: Michigan
Posts: 1,530
Quote:
Originally Posted by kenny
I wish .htaccess would work for movies.
It can use this in htaccess

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]
and put this javascript on the page with the movies

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>
vapewiz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:59 AM   #16
kenny
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 7,245
Quote:
Originally Posted by Antonio
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/

You can do it that way or use a custom image instead.
__________________
7
kenny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 08:59 AM   #17
chemicaleyes
UNSTOPPABLE
 
chemicaleyes's Avatar
 
Join Date: Aug 2003
Location: UK :: ICQ# 156068
Posts: 11,569
http://www.eadultindustry.com/tools/...n-checker.html
__________________
No way as way, No limitation as limitation. AmeriNOC formally PhatServers
chemicaleyes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2005, 10:59 AM   #18
darksoft
Confirmed User
 
Join Date: Mar 2001
Location: BumFuck Ohio
Posts: 768
Quote:
Originally Posted by kenny
You can do it that way or use a custom image instead.
Or you can be smart and send them somewhere else instead of continually wasting bandwidth on leechers. But then that wouldn't be cool.
darksoft 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.