![]() |
I need an anti-hotlinking htaccess for WMVs
I currently am using htaccess to do anti-hotlinking of the pictures on my site and it works well, but I need a script that will not allow users to hotlink WMVs.
Here is the script I am using now: PHP Code:
Anyone have any ideas how I can get people to be able to view the movies from my site but not hotlink to them directly? Thanks! |pcsucks| |
There are ways of doing it but not using htaccess. I've seen scripts that can be installed on your server. Personally I just switched to mpegs and all is good.
|
Oh so MPEGs can be added to htaccess?
|
Yes and it works just like with GIFs and JPGs.
|
Oh well then that solution is obvious. I wasn't aware of that. I don't need WMVs.
Thanks Cleo, you just saved me $200 on a script. |smooch| |
What version of Apache are you on?
You could have altered the Rule to read RewriteRule [^/]+.(jpg|jpeg|gif|png|bmp|wmv)$ - [F] That may have worked. |
Quote:
|
Quote:
DD |
you do an allow and deny
one is by IP deny from all allow from 123.456.789.001 The other way is (folder that links the pages that loads the files deny from all allow from /www/sites/yourdomain.com/content/ google .htaccess and you should find one that works - I looked for one to cut and paste but I can't find the right one - I have done this before myself |
Quote:
|
No it doesn't.
The browser plays mpegs so it sends referral info. You can play mpegs with no plugins installed at all with some browsers and they will still play. With WMV files another application plays them. Not really sure about AVI files but I seem to remember that they work the same way mpegs work. WMV files work like crap on non Windows machines with lots of issues. RealPlayer files have the same issues as WMV files. |
Quote:
If you have a link to a .mgp which is only protected with .htaccess please post a direct link here so I can test it, thanks. |
Quote:
|
Quote:
|
Quote:
I'm stopping hotlinking not bookmarking a movie, but a simple change to my htaccess would also prevent this. This line in my htacess allows bookmarking a movie or pic. RewriteCond %{HTTP_REFERER} !^$ Try pasting the url of the movie into this page and you will see that it does not play. http://altlab.com/hotlinking.html |
Quote:
EDIT: Link removed. |
Quote:
|
My htaccess is working the way I want it to.
You can click on it from this board and play the movie because the greenguysboard.com is in my htaccess file. But just to prove my point I have changed my htaccess file for this one gallery and you can no longer bookmark a movie or play it from this board. Only kinky-cleo.com is now a good referral. That is the beauty of htaccess in that you can control access without spending money on scripts or the hassle of scripts. Plus you can do it by directory as I have just shown. You have turned into a spammer just trying to sell your script which I don't need or want. |
Quote:
|
I love Cleo's redirecting to "cleo-says-fuck-you" |haha
Nige, sorry to say so, but 250$ for AHL is money out of the window. There is an easy way to by-pass it |rasta| |
I guess I was wrong, I didn't know you could use .htaccess to block .mpg's from being hotlinked.
I apologize. And I am in no way affiliated with AHL. Just so you know. |
Quote:
|
You sure sound like you are an affiliate of that script. If you are not then I apologize for calling you a spammer.
|
Quote:
I guess you owned me big time. |knockout| I'm surprised that not more people are using .htaccess to block access to .mpg's, there's a lot of big affiliate programs that are having their movie files hotlinked. |
Quote:
|
All times are GMT -4. The time now is 11:24 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc