Prevent Hotlinking

1. Default image
http://static.kimbs.cn/logo.png

2. Create apache .htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !kimbs.cn [NC]
RewriteRule .*.(gif|jpg|png|bmp|swf|jpeg)$ http://static.kimbs.cn/logo.png [R,NC,L]

3. Place .htaccess
Put it under the image folder: static.kimbs.cn/img/.htaccess
but not the top folder: static.kimbs.cn/

Posted in SEO | Tagged | Leave a comment