webmaster tutorials and internet facts

Disable hot linking with htaccess

Sometimes we want to prevent stealing our content, there are lots of lamers with autoblogs that looking for your content to add it into their RSS, when they do it, your blog is avoided by search engines in ranking if those lamers have higher page rank than you. I don’t need hotlinking and I don’t need my blog to be milked like a cow.

Here is the htaccess code to prevent hotlinking, and I hope it helps to you.

You can change the url of the image in the last line, it will be shown on lamer’s blog.

Options +FollowSymlinks
# no hot-linking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?glurt\.com/ [NC]
RewriteRule .*\.(gif|jpg|png)$ http://glurt.com/img/scammer.png [NC]

Add Twitter response to this post...
Twitter username :   
Twitter password :

Post Metadata

Date
July 11th, 2009

Author
glurt

Category

Tags


Leave a Reply