![]() |
how do you protect mpg's from hotlinkers?
thanks...
|
you're welcome.
|
Amp, you are so mean. LMAO
|
.htaccess
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://.*.yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain/.*$ [NC] RewriteRule .*\.(MPG|mpg)$ http://www.yourdomain.com [R] |
your .htaccess file will handle this. If you're using apache (which you should be), have your admin make sure the mod_rewrite is installed and running. Then add the appropiate coding that will stop everyone from pulling that file or any file from your site unless it is requested from your site itself. Hope that made sense.
add this to the .htaccess RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC] RewriteRule .*\.mpg$ - [L] RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC] RewriteRule .*\.mpeg$ - [L] hope that helps |
Quote:
sorry.... try again, and thanks for playing. |
lick balls
|
this board is fast... I reply when there are no replies and by the time I type it out, everyone has jumped in.
coo |
Quote:
thanks for playing, but you are the weakest link. goodbye. |
amp can u please contact me on icq 124017804
|
Quote:
This has been fully hashed out before here... do a search on the topic and you'll see some good stuff from Lane and some others who dissected the problem to it's bone. If they've come up with a new solution since then, I haven't heard of it. best of luck... :thumbsup |
My script is almost ready and it rocks ! :)
|
Quote:
keep us tuned bro.... :thumbsup |
Quote:
Not quite correct. What if the filename ends with .mPg ? BUMP! You'd better make it look this way: RewriteRule .*[Mm][Pp][Gg]$ http://www.domain/hotlink.jpg You could create an image that would look like "This image is hosted by blablabla.com" My :2 cents Dreamman |
Let us know when that script is done. I am curious.
|
Do what AMP said and use a rotator script or stick the files outside of your public HTML or in a directory with all the permissions removed/htaccess stopping all access and then use a script in php or something to stream (no I dont mean streaming video) up to the browser.
You can then check whatever you like in the script before picking it up with a file IO command and pushing it up to the browser. Jayson |
| All times are GMT -7. The time now is 10:12 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123