A very easy way to prevent your gif, jpeg, png files (and any other file formats you choose) from being hotlinked in other websites is to use a few mod_rewrite rules in your .htaccess file.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+\.)?geekpedia\.com [NC]
RewriteRule \.(gif|jpe?g|png)$ - [F,NC,L]
Ref: www.geekpedia.com
No comments:
Post a Comment