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?
block hotlinking
Collapse
X
-
post what you are doing. -
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?Last edited by bringer; 03-26-2004, 01:08 AM.333-765-551Comment
-
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.Comment
-
-
niceqComment
-
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.Comment
-
Cyberwurx Hosting
After trying 5 different hosts, I found the best.
Since 1997 I've had 2 hours of downtime.
Fast support, great techs, no hype, no gimmicks.
<- I in no way endorse whatever just got stuck on the left of my post.Comment
-
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.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.
I don't remember where I got this from, but the credit is theirs
, however the linking to a dialer idea was mine
due to all the leech forum traffic I was getting
Comment
-
Damn, that's where I got it from! Thanks Ben.Comment



Comment