January 29, 2010

TEXT SIZE minus plus

Prevent Hotlinking (Save Bandwidth)

Advertisement
You Might Be Interested In Our Popular Article
  • Most Essential Free Softwares After Windows Installation
  • Many a times Bloggers run out of their monthly usage without even their articles getting many hits, resulting in a downtime or paying penalty for specific hosting. This might be a result of Hotlinking, this means that the images you are hosting on your site are used by other sites by inserting same links in IMG tags, which sucks your bandwidth.

    This simple tutorial will help you prevent this in a snap.

    For Advanced Users:

    Note: Do take backup of your .htaccess(hypertext access) file.

    01. Search for a file named .htaccess(hypertext access) in the webroot of your server (FTP) and can be easily edited using any text editor (like Notepad). Open it and add below code in it:

    Options +FollowSymlinks
    #Protect against hotlinking
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www.)?domainname.com/ [nc]
    RewriteRule .*.(gif|jpg|png)$ http://domainname.com/img/stop_stealing_bandwidth.gif[nc]

    02. Save and you are done.

    For Normal Users:

    You can download and install the below plugin for achieving such:
    WordPress Automatic Image Hotlink Protectionn

    Script Source:

    This concludes this simple and useful tutorial. Hope you like it.



    Print

    About the Author

    When I was born I was so shocked I didn't speak for a year and half...... My brain has 2 parts, Right and Left, The Right one has nothing left in it and the Left one has nothing right in it......Who says Nothing is Impossible?? I've been doing nothing for years......