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)
-   -   htaccess to prevent hotlinking (https://gfy.com/showthread.php?t=36321)

B40 08-02-2001 04:22 PM

htaccess to prevent hotlinking
 
Anyone have it?

------------------
Cold Sex Partnership - Free Content - 60%

m0rph3us 08-02-2001 04:25 PM

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.alloweddomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://alloweddomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.111.111.121/ [NC]
RewriteRule /* http://www.domainorpagetoberedirectedhotlinkers.com [R,L]

This prevents all type of hotlinking, even HTML pages...you might wanna modify it to only prevent images and videos like so:

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://sponsorusually.com

B40 08-02-2001 04:44 PM

hmm...didnt quite understand that..

------------------
Cold Sex Partnership - Free Content - 60%

X-raid 08-02-2001 04:49 PM

Put the code in htaccess.txt and upload to the server, rename to htaccess and your done i think... worked for me!

B40 08-02-2001 05:07 PM

I know how to use the htaccess part, so I just cut and copy that code?

I know I have to change the URL's, but what's that stuff about hotlinking HTML pages?

Chris R 08-02-2001 05:14 PM

don't forget to put the period in front:

.htaccess



X-raid 08-02-2001 05:18 PM

Aa! thats right, you need to rename it to .htaccess
sorry :-/

B40 08-02-2001 05:21 PM

So I just add this?

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.alloweddomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://alloweddomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.111.111.121/ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://sponsorusually.com


What do I replace the "alloweddomain.com" to? And the "216.111.111.121"?

------------------
Cold Sex Partnership - Free Content - 60%

X-raid 08-02-2001 05:23 PM

your url and ip ?

B40 08-02-2001 05:27 PM

Ahhh...got ya...

and the sponsorusually?

X-raid 08-02-2001 05:29 PM

hmm don't know, can it be the url that hotlinker will go to?
type in your sponsor or someting... well type your mainurl so you don't get any problems from sponsors or someting




[This message has been edited by X-raid (edited 08-02-2001).]

B40 08-02-2001 05:38 PM

Ahhh got it. Thanks a lot X-Raid. Appreciate it.

------------------
Cold Sex Partnership - Free Content - 60%


All times are GMT -7. The time now is 10:38 AM.

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