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)
-   -   Need to Block Hotlinkers!!!!!!!!! (https://gfy.com/showthread.php?t=100911)

VeriSexy 01-18-2003 03:18 AM

Need to Block Hotlinkers!!!!!!!!!
 
http://www.spamfreexxx.com/

http://xxxmovieforum.com/


Need to block any kind of traffic from these guys. They link directly to peoples movie files.

Sneka 01-18-2003 04:29 AM

use an .htaccess files or buy a anti-hotlinking script ...
with this kind of script you can earn money and redirect traffic on your main page or and sponsor one.

VeriSexy 01-18-2003 05:08 AM

What's the code to block traffic from certain sites?

And what is url for the anti hotlinking script?

MichaelH 01-18-2003 05:16 AM

A pure htaccess solution won't work against hotlinking (for the right-clicking). Actually, it would work (someone made me once one) but it will affect other things negatively as well.

There IS a solution with Javascript + htaccess like this one below :


This goes onto the pages you want to protect :

<SCRIPT LANGUAGE="javascript">
// Calculate the expiration date
var expires = new Date ();
expires.setTime(expires.getTime() + 1 * 60 * 60 * 1000);
document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();
</SCRIPT>

This goes into your htaccess :

RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*yourdomain.com/ [NC]
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule /*$ http://www.yourdomain.com/ [L,R]



But it's not 100% safe and even more important, most tgps & mgps ban javascript, so your galleries wouldn't even make it through the submission scripts.

There is another 100% effective solution, and you might want to contact me.


Michael

VeriSexy 01-18-2003 05:21 AM

<Limit Get>
order allow,deny
deny from www.spamfreexxx.com
deny from www.xxxmovieforum.com
allow from all
</Limit>

Would this work? I contacted you once and you ended up giving me a url to a webhost LOL

MichaelH 01-18-2003 05:30 AM

Oups, VeriSexy, sorry, i just see that the board doesn't allow and hides javascript.

Let me try it again.
This goes onto the pages you want to protect :

ZZZZSKRIPT LANGUAGE="javascript"ZZZZ
// Calculate the expiration date
var expires = new Date ();
expires.setTime(expires.getTime() + 1 * 60 * 60 * 1000);
document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();
ZZZZ/SKRIPTZZZZ


Please replace SKRIPT INTO SCRIPT
And ZZZZ into < and >

Otherwise hit me up on icq again (sorry if i don't remember you) and i'll help with that script. Concerning the url, it's the perfect solution for me for hosting movie galleries since they have the hotlink protection implemented into their hosting facilities, so you won't need any other scripts like above.

Ciao! Michael

VeriSexy 01-18-2003 05:41 AM

I know about Java script. i don't plan to use it since it's banned by many TGPs

PatrickM 01-18-2003 05:46 AM

Then use a .htaccess+cookie solution

http://www.arsresources.com/articles...s-movies.shtml

Vivaldi 01-18-2003 06:11 AM

If you have a good hosting with cPanel5 - the antihotlinking script is already there... Just choose "set anit-hotlinking" in control panel.

erotictrance 01-18-2003 08:31 AM

xxxwebhosting.com is offering time stamped urls in their cheaper virtual hosting streaming packages ...

I've only tested it a little bit since it's new, but it might be worth a look since it can be fairly effective against hotlinking ...

Just FYI

FreeHugeMovies 01-18-2003 01:51 PM

I use likewhoa to protect my movies from being hotlinked. I sometimes get over 40K in traffic from these type places. Their prod may not be that good but It does help me grow! So let them link me all they wish! :)

http 01-18-2003 04:07 PM

just set the cookie with php then there won't be any javascript...


All times are GMT -7. The time now is 01:02 PM.

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