![]() |
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?
|
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? |
anyone know?
|
I once uplaoded an .httaccess fiel and my site wasnt able to laod
|
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. |
|
Quote:
|
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. |
|
Quote:
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 |
Quote:
|
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