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)
-   -   how do you protect mpg's from hotlinkers? (https://gfy.com/showthread.php?t=54931)

smoke 03-28-2002 02:01 PM

how do you protect mpg's from hotlinkers?
 
thanks...

Amputate Your Head 03-28-2002 02:02 PM

you're welcome.

Lickshots 03-28-2002 02:05 PM

Amp, you are so mean. LMAO

ztik 03-28-2002 02:05 PM

.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]

ihateastro 03-28-2002 02:06 PM

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

Amputate Your Head 03-28-2002 02:06 PM

Quote:

Originally posted by ztik
.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]

wrong.

sorry....

try again, and thanks for playing.

ztik 03-28-2002 02:07 PM

lick balls

ihateastro 03-28-2002 02:07 PM

this board is fast... I reply when there are no replies and by the time I type it out, everyone has jumped in.

coo

Amputate Your Head 03-28-2002 02:07 PM

Quote:

Originally posted by ihateastro
your .htaccess file will handle this.
you too.....

thanks for playing, but you are the weakest link.

goodbye.

smoke 03-28-2002 02:16 PM

amp can u please contact me on icq 124017804

Amputate Your Head 03-28-2002 02:19 PM

Quote:

Originally posted by smoke
amp can u please contact me on icq 124017804
no... I'm busy today... but in a nutshell, forget about htaccess for vids.... not gonna work. You either use a rotator script to constantly rename them & the paths so no one can get a grip on them long enough to hotlink, or you bury them deep as you can in a subfolder somewhere & take your chances without protection.

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

FreeOnes 03-28-2002 02:25 PM

My script is almost ready and it rocks ! :)

Amputate Your Head 03-28-2002 02:27 PM

Quote:

Originally posted by freeones
My script is almost ready and it rocks ! :)
awesomeness!

keep us tuned bro.... :thumbsup

Dreamman010 03-28-2002 02:27 PM

Quote:

Originally posted by ihateastro
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


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

hatebreed 03-28-2002 02:29 PM

Let us know when that script is done. I am curious.

Jayson 03-28-2002 02:34 PM

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