Prevent Images/Files Hotlinking & Bandwidth Stealing

This section contains the codes and tips to improve the ranking of your site into the search engines. It will also contain info regarding the Mod Rewrite technique.

Prevent Images/Files Hotlinking & Bandwidth Stealing

Postby MT Shahzad on March 18th, 2008, 5:19 am

One of the most irritating things to find, is someone linking to your images, and running up your bandwidth.

You go through your web statistics and find a website that has not only stolen your images, but in fact simply linked right to them, on your server.

The problem with this is not just the theft of your images, but it runs up your bandwidth as well. This is known as "Leeching".

You can easily block the stealing of your bandwidth by blocking the links to files and images on your domain by others. Place the following simple code in your .htaccess file.

Code: Select all
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?geosourcecode.net/.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|swf|flv|png)$ - [F,NC]
MT Shahzad
Web/Software Developer
http://mts.sw3solutions.com
User avatar
MT Shahzad
Site Admin
 
Posts: 300
Joined: February 29th, 2008, 8:11 am
Location: Muridke, Pakistan

Return to SEO - Search Engine Optimization

Who is online

Users browsing this forum: No registered users and 0 guests

cron