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)
-   -   block hotlinking (https://gfy.com/showthread.php?t=258811)

bringer 03-26-2004 02:51 AM

block hotlinking
 
ive tried all the examples i could find on making the .htaccess and when i do as stated in the examples and put in my domain and put the file on my server, all the files within that folder i place the .htaccess file wont show even if linked on my site. anyone know what the problem is and how i can fix this?

LiveDose 03-26-2004 02:59 AM

post what you are doing.

bringer 03-26-2004 03:01 AM

now that ive enabled rewrite the images show even if hotlinked from other sites

.htaccess

RewriteEngine on
RewriteCond %{HTTP_REFERER}!^http://elite-galleries.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.elite-galleries.com.*$ [NC]
RewriteRule .*.(gif¦GIF¦jpg¦JPG)$ - [F]

do i need to add anything in the httpd.conf?

bringer 03-26-2004 03:08 AM

anyone know?

johnbosh 03-26-2004 03:10 AM

I once uplaoded an .httaccess fiel and my site wasnt able to laod

LiveDose 03-26-2004 03:29 AM

RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^.*yoursite.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^.*your site ip#.*$ [NC]
RewriteRule .*[Jj][Pp][Ee]*[Gg]$|.*[Gg][Ii][Ff]$ hotlink.gif




try this.

SGS 03-26-2004 03:36 AM

This will help you:

http://www.htmlbasix.com/disablehotlinking.shtml

johnbosh 03-26-2004 03:38 AM

Quote:

Originally posted by SGS
This will help you:

http://www.htmlbasix.com/disablehotlinking.shtml

niceq

Lycanthrope 03-26-2004 05:45 AM

add your IPs and port 80... hell just let me copy a recent one:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.doman.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xx.xxx.xx.xx.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xx.xxx.xx.xx:80.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Jj][Pp][Ee][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.com/hotlink.html

Then, create a seperate file called ^ hotlink.html and in that file create a simple hyperlink "click here to continue" going nowhere... this will probably not ever be seen. Or, to catch those that think they are crafty by C&Ping... link it to a dialer and use a mouseover pointing to your root index file.

This hotlink.html call will elminate filling up your error log w/ useless info.

mryellow 03-26-2004 05:50 AM

http://www.webpimps.com/scripts/htaccess/

Few tricks and tips.

-Ben

Lycanthrope 03-26-2004 05:54 AM

Quote:

Then, create a seperate file called ^ hotlink.html and in that file create a simple hyperlink "click here to continue" going nowhere... this will probably not ever be seen. Or, to catch those that think they are crafty by C&Ping... link it to a dialer and use a mouseover pointing to your root index file.

This hotlink.html call will elminate filling up your error log w/ useless info.
or you could redirect it to a "stolen from" type image, but if you have a lot of attempts, it could eat a small amount of bandwith.

I don't remember where I got this from, but the credit is theirs :thumbsup , however the linking to a dialer idea was mine :Graucho due to all the leech forum traffic I was getting

Lycanthrope 03-26-2004 05:55 AM

Quote:

Originally posted by mryellow
http://www.webpimps.com/scripts/htaccess/

Few tricks and tips.

-Ben

Damn, that's where I got it from! Thanks Ben.


All times are GMT -7. The time now is 08:15 PM.

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