View Single Post
Old March 20th, 2003, 03:15 PM     #4 (permalink)
crouse
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
The site www.angelfire.com is running Squeegit/1.2.5 (3_sir) on Linux

Not sure what kind of server Squeegit is, or if it is a gzip compression program for apache.

Using a .htaccess file with apache, you can make other images show up on hotlinked images, so an alternate image is displayed in place of the hot linked one. The code for this is:

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/stupid.gif [R,L]
replace mydomain.com with your own, plus replace stupid.gif with whatever you want to show up in place of hotlinked images.

Put the .htaccess file in whatever image directory you want to protect from image hotlinking.

HTH's
__________________
USA Linux Users Group
OpenSUSE.us
crouse is offline   Reply With Quote