mod_rewrite

Aha…it looks like EZPublishing does support mod_rewrite after all. Well, that’ll allow me to kill all the remote linking of Alex’s pictures. It won’t stop people grabbing copies of them and hosting them on their own site. But the password protection will stop them from getting at those photos in the first place.

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