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)
-   -   htaccess or whatever... (https://gfy.com/showthread.php?t=52738)

Rod 03-05-2002 02:54 PM

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

amadman 03-05-2002 03:02 PM

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)

Rod 03-05-2002 03:03 PM

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? :)

darksoft 03-05-2002 03:04 PM

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 03-05-2002 03:05 PM

crap, email has been disabled...

webmaster at myhottiez dot com

Rod 03-05-2002 03:06 PM

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??

ServerGenius 03-05-2002 03:08 PM

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

darksoft 03-05-2002 03:15 PM

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.

Rod 03-05-2002 03:18 PM

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!! :)

ServerGenius 03-05-2002 03:21 PM

rewrite rules are browser independent they also work for MSIE

DynaMite

darksoft 03-05-2002 03:26 PM

windows media player does not have a referrer so it will not work.

AdultWire 03-05-2002 03:31 PM

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.

ServerGenius 03-05-2002 03:35 PM

Darksoft you're right I didn't notice that this was for Media Player

DynaMite

darksoft 03-05-2002 03:39 PM

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

jimmyf 03-05-2002 03:45 PM

Maybe this will work


All times are GMT -7. The time now is 04:40 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123