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-05-2002, 02:54 PM   #1
Rod
Confirmed User
 
Join Date: Apr 2001
Location: MTL, QC, CAN
Posts: 1,243
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
Rod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:02 PM   #2
amadman
Confirmed User
 
Join Date: Nov 2001
Location: padded room
Posts: 738
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)
__________________
Affordable Quality Niche Content at <a href="http://reyko.com/in.php?ref=amadman">Reyko</a>

Please submit your free and AVS sites <a href="http://xstash.com/sexpack/submit.html">here</a>

Last edited by amadman; 03-05-2002 at 03:05 PM..
amadman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:03 PM   #3
Rod
Confirmed User
 
Join Date: Apr 2001
Location: MTL, QC, CAN
Posts: 1,243
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?
Rod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:04 PM   #4
darksoft
Confirmed User
 
Join Date: Mar 2001
Location: BumFuck Ohio
Posts: 768

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.
darksoft is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:05 PM   #5
darksoft
Confirmed User
 
Join Date: Mar 2001
Location: BumFuck Ohio
Posts: 768

crap, email has been disabled...

webmaster at myhottiez dot com
darksoft is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:06 PM   #6
Rod
Confirmed User
 
Join Date: Apr 2001
Location: MTL, QC, CAN
Posts: 1,243
Quote:
Originally posted by darksoft
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.
So, to protect from hotlinkers, I need to put javascript on my pages?

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??
Rod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:08 PM   #7
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
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
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:15 PM   #8
darksoft
Confirmed User
 
Join Date: Mar 2001
Location: BumFuck Ohio
Posts: 768

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.
darksoft is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:18 PM   #9
Rod
Confirmed User
 
Join Date: Apr 2001
Location: MTL, QC, CAN
Posts: 1,243
Quote:
Originally posted by darksoft
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.
Can you send me that script by e-mail at [email protected] ?

Thanks a lot if you can!!
Rod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:21 PM   #10
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
rewrite rules are browser independent they also work for MSIE

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:26 PM   #11
darksoft
Confirmed User
 
Join Date: Mar 2001
Location: BumFuck Ohio
Posts: 768

windows media player does not have a referrer so it will not work.
darksoft is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:31 PM   #12
AdultWire
Confirmed User
 
Join Date: Feb 2002
Location: Toronto, ON
Posts: 962
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.
__________________
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.
AdultWire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:35 PM   #13
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Darksoft you're right I didn't notice that this was for Media Player

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:39 PM   #14
darksoft
Confirmed User
 
Join Date: Mar 2001
Location: BumFuck Ohio
Posts: 768

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...
darksoft is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2002, 03:45 PM   #15
jimmyf
OU812
 
Join Date: Feb 2001
Location: California
Posts: 12,651
Maybe this will work
__________________
Epic CashEpic Cash works for me
Solar Cash Paysite Plugin
Gallery of the day freesites,POTD,Gallery generator with free hosting
jimmyf 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.