surabaya web designer
cheap web promotion indonesia
design graphics and online shopping cart
     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

Top 7 PHP Security Blunders (1)

Safeguard your XML based messages 3

Safeguard your XML based messages 4

Register Global

Safeguard your XML based messages 2

Preventing directory listing

Program Security

Safeguard your XML based messages

Prevent htaccess From Hack 1

Howto create a password for a htpasswd file using PHP