![]() |
htaccess to prevent hotlinking
|
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 |
|
Put the code in htaccess.txt and upload to the server, rename to htaccess and your done i think... worked for me!
|
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? |
don't forget to put the period in front:
.htaccess |
Aa! thats right, you need to rename it to .htaccess
sorry :-/ |
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% |
your url and ip ?
|
Ahhh...got ya...
and the sponsorusually? |
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).] |
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