Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-28-2002, 02:01 PM   #1
smoke
Confirmed User
 
Join Date: Mar 2002
Posts: 449
how do you protect mpg's from hotlinkers?

thanks...
smoke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:02 PM   #2
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
you're welcome.
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:05 PM   #3
Lickshots
Confirmed User
 
Join Date: Feb 2002
Location: FTL
Posts: 271

Amp, you are so mean. LMAO
Lickshots is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:05 PM   #4
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
.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]
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:06 PM   #5
ihateastro
Registered User
 
Join Date: Mar 2002
Location: Mom's Basement
Posts: 44
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
__________________
-ihateastro-

there are no stupid questions, just dumb motherfuckers
ihateastro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:06 PM   #6
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
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.
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:07 PM   #7
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
lick balls
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:07 PM   #8
ihateastro
Registered User
 
Join Date: Mar 2002
Location: Mom's Basement
Posts: 44
this board is fast... I reply when there are no replies and by the time I type it out, everyone has jumped in.

coo
__________________
-ihateastro-

there are no stupid questions, just dumb motherfuckers
ihateastro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:07 PM   #9
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
Quote:
Originally posted by ihateastro
your .htaccess file will handle this.
you too.....

thanks for playing, but you are the weakest link.

goodbye.
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:16 PM   #10
smoke
Confirmed User
 
Join Date: Mar 2002
Posts: 449
amp can u please contact me on icq 124017804
smoke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:19 PM   #11
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
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...
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:25 PM   #12
FreeOnes
Confirmed User
 
FreeOnes's Avatar
 
Join Date: Jul 2001
Location: The Netherlands
Posts: 3,400
My script is almost ready and it rocks !
__________________

The new FreeOnes! - AdultFilmStarContent - BabeGalleries and much more! - 1Strike Movies and much more! All powered by Xpressa
FreeOnes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:27 PM   #13
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
Quote:
Originally posted by freeones
My script is almost ready and it rocks !
awesomeness!

keep us tuned bro....
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:27 PM   #14
Dreamman010
Confirmed User
 
Join Date: Jan 2002
Location: Toronto, ON, Canada
Posts: 1,081
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
__________________
<a href="http://www2.famoushost.com/home.php" target="_blank"><b><FONT COLOR="FFFF00">www.FamousHost.com</font></b></a><br>Free Hosting With No Headers, Real FTP, <u>Get listed on the biggest TGP's with us!</u>
Dreamman010 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:29 PM   #15
hatebreed
Registered User
 
Join Date: Jan 2002
Posts: 71
Let us know when that script is done. I am curious.
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
hatebreed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2002, 02:34 PM   #16
Jayson
Confirmed User
 
Join Date: Oct 2001
Location: CZ
Posts: 554
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
__________________
Sapphic Cash - We Do It Right
Jayson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.