category      articles    
 
Adsense
Adwords
Article
Blog
CMS
CSS Style
Datacenter
Design Graphics
Flash Animation
Internet Radio
Messenger
Programming
Provider
Search Engine
Security
Security Web
SEF
SEO
Software
Software Web
Protecting your bandwidth

"Bandwidth stealing," also known as "hot linking," is linking directly to non-html objects on another server, such as images, electronic books etc. The most common practice of hot linking pertains to another site's images.

To disallow hot linking on your server, create the following .htaccess file and upload it to the folder that contains the images you wish to protect...

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

Replace "YourSite.com" with your own. The above code causes a broken image to be displayed when it's hot linked. If you'd like to display an alternate image in place of the hot linked one, replace the last line with...

RewriteRule \.(gif|jpg)$ http://www.YourSite.com/stop.gif [R,L]

Replace "YourSite.com" and stop.gif with your real names.

OTHER ARTICLES

Preventing directory listing

Howto create a password for a htpasswd file using PHP

About Super Global

Safeguard your XML based messages

Register Global

Safeguard your XML based messages 2

Safeguard your XML based messages 4

Top 7 PHP Security Blunders (1)

Prevent htaccess From Hack 1

Program Security