GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to prevent hotlinking using htaccess?? (https://gfy.com/showthread.php?t=414075)

tranza 01-09-2005 08:16 AM

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

Manowar 01-09-2005 08:17 AM

http://altlab.com/hotlinking.html

http://www.unixcities.com/apache/index1.html

Jon2 01-09-2005 08:17 AM

http://www.htmlbasix.com/disablehotlinking.shtml

A generator :)

Jon

Dalai lama 01-09-2005 08:19 AM

thanks for those links.

Antonio 01-09-2005 08:19 AM

http://www.htmlite.com/HTA013.php

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

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

google is your friend

Jon2 01-09-2005 08:23 AM

What is google?

Jon

MandyBlake 01-09-2005 08:35 AM

i had the exact same question months ago and this board helped me out. :)
good luck.
big bw bills suck.

tranza 01-09-2005 08:35 AM

Ok, thanks!

But what about people that type in the browser the images URL directly. Can I redirect them?

fris 01-09-2005 08:37 AM

its only a bandwidth bill, pay it and stop crying ;)

vapewiz 01-09-2005 08:41 AM

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. :eek7

jimmyf 01-09-2005 08:50 AM

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. :eek7

:1orglaugh I know :1orglaugh

kenny 01-09-2005 08:51 AM

I wish .htaccess would work for movies.

jimmyf 01-09-2005 08:52 AM

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
:upsidedow






yes you can

Antonio 01-09-2005 08:55 AM

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/

vapewiz 01-09-2005 08:57 AM

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>


kenny 01-09-2005 08:59 AM

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.

chemicaleyes 01-09-2005 08:59 AM

http://www.eadultindustry.com/tools/...n-checker.html

darksoft 01-09-2005 10:59 AM

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.


All times are GMT -7. The time now is 09:18 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123