Fri 4 Apr 2008
Prevent Hot Linking to images
Posted by Tuks under Blogging , Dedicated Server Hosting , Domain Name Hosting , Firewall , Linux Web Hosting , Networking , Online Marketing , SEO Articles , Web Hosting , cPanel Issues , cheap linux web hostingTo stop other sites directly linking to your images and media files and stealing your bandwidth You need to add following code in your .htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com(/)?.*$ [NC]
RewriteRule .*.(gif|jpg|jpeg|bmp|wmv)$ http://www.domain.com/image.jpg [R,NC]
Note: replace your website with domain.com
Leave a Reply
You must be logged in to post a comment.


















