How to Avoid Hot Linking

“hot linking” is a problem that a site owner is facing specially if the hot link images is high views from those who copied the pics. it is also “bandwidth stealing” by others .
You may disallow hot linking by using .htaccess, It might redirect the pictures to otehr pictures in the net or just a simple broken image links.

Here are the direction on how to make it via Htaccess. You have to copy the following txt to your .htaccess. but be sure to change with your own

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$ [NC]
RewriteRule \.(gif|jpg|js|css)$ – [F]

The above code creates a failed request when hot linking of the specified file types occurs. In the case of images, a broken image is shown instead.

Serving alternate content when hot linking is detected

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$ [NC]
RewriteRule \.(gif|jpg)$ [R,L]

But be sure to upload to your server.

Dexter Panganiban

Dexter is a person who loves technology,new gadget, SEO, Social Media and Christianity. Follow him at twitter via @techathand and add him @ Google+ and contact us at [email protected]

You May Also Like

More From Author

+ There are no comments

Add yours

This site uses Akismet to reduce spam. Learn how your comment data is processed.