Forum Moderators: phranque
It seems that there would be a simple settings to limit the access to visitors of my web site only.
<limit GET>
order deny,allow
deny from all
allow from (myserverip)
</limit>
Welcome to WebmasterWorld
I think what you are looking for is some of the functionality available via mod_rewrite on apache.
The basic theory is that the referrer is checked and if its not your site then block them.
Better would be a message saying - "link to me - don't steal my downloads". And hope they test - spot the message and link.
Blocked In-line ImagesProblem Description:
Assume we have under [quux-corp.de...] some pages with inlined GIF graphics. These graphics are nice, so others directly incorporate them via hyperlinks to their pages. We don't like this practice because it adds useless traffic to our server.
Problem Solution:
While we cannot 100% protect the images from inclusion, we can at least restrict the cases where the browser sends a HTTP Referer header.
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.quux-corp.de/~quux/.*$ [NC]
RewriteRule .*\.gif$ - [F]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !.*/foo-with-gif\.html$
RewriteRule ^inlined-in-foo\.gif$ - [F]
From [engelschall.com...] which is currently down hence the copy and paste...
Good luck
As a courtesy to whomever may need this fix in the future I am posting it. I created a .htaccess file and the contents were:
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/
RewriteCond %{HTTP_REFERER} !^http://your_domain.com/
RewriteCond %{HTTP_REFERER} !^http://your_ip_address/
RewriteRule /* [your_domain.com...] [R,L]