![]() |
htaccess or whatever...
I need something to protect hotlinkers from hotlinking my videos from my server...
Anyone knows a good code for that? Thanks, Steve |
just ad the extention to the rewrite rule you are using for your pic hotlinking.
For example: here is a rewriterule that covers jpg,jpeg,gif and rm files with both case covered. RewriteRule .*[Jj][Pp][Ee]*[Gg]$|.*[Gg][Ii][Ff]$|.*[Rr][Mm]$ http://www.yourdomain.com/thieves.htm hope that makes sense :o) |
I do not use any htacces for my pics...since I do not make pics galleries or stuff like that.
I am only in the movies things... so can you expalin a bit more? :) |
Won't work with windows media player. You need to add a piece of javascript to the page that has the links as well as a line of code to the htaccess file. Steve, email me for the code.
|
crap, email has been disabled...
webmaster at myhottiez dot com |
Quote:
Well, the hotlinkers will only have to copy/paste the links....without the javascript, and will be able to hotlink anyway...? Am I missing something?? |
Here's another for .htaccess file
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC] RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG|rm|RM) $ http://www.yourdomain.com [R,L] DynaMite |
The javascript will set a cookie for them and you can specify how long the cookie lasts. If they don't have the cookie, they don't get access to the movies, so no hotlinking. The other stuff posted here only works with netscape.
|
Quote:
Thanks a lot if you can!! :) |
rewrite rules are browser independent they also work for MSIE
DynaMite |
windows media player does not have a referrer so it will not work.
|
Wow.. okay here's an easier way to write those rules:
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.theadultwire.com.*$ [NC] RewriteRule ^.*\.(gif|jpg|swf|css|png|jpe|jpeg|js)$ http://www.theadultwire.com/adultapp/thumbs/ [NC,R] You don't need to do each capitalization, just put 'NC' in the brackets at the end. |
Darksoft you're right I didn't notice that this was for Media Player
DynaMite |
Yeah, since netscape using it's own built-in shit for a lot of things it may never crop up, and since Billy G is such a fuckstick, he had to make it so wmp didn't use a referrer... otherwise this wouldn't be necessary...
|
Maybe this will work
|
| All times are GMT -7. The time now is 04:40 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123