Web Hosting How-Tos

  Home arrow Web Hosting How-Tos arrow Page 4 - Optimizing Website Server Bandwidth
Web Hosting Articles  
Web Hosting FAQs  
Web Hosting How-Tos  
Web Hosting News  
Web Hosting Reviews  
Web Hosting Security  
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB HOSTING HOW-TOS

Optimizing Website Server Bandwidth
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 8
    2010-03-24

    Table of Contents:
  • Optimizing Website Server Bandwidth
  • Estimating Website Bandwidth Requirements
  • Case Study Example
  • Bandwidth-Saving Tips

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     

    SEARCH WEB HOSTERS

    TOOLS YOU CAN USE

    advertisement

    Optimizing Website Server Bandwidth - Bandwidth-Saving Tips


    (Page 4 of 4 )

     

    The most important corrective action is to prevent hot linking. This can be done using .htaccess in an Apache web server. Say you will only allow access to the following file types within your domain www.thisisyourwebsite.com (for both http and https version) as well as your sister domain, http://www.yoursisterdomain.com :

    ## DISABLE HOTLINKING

    RewriteEngine on

    # Options +FollowSymlinks

    RewriteCond %{HTTP_REFERER} !^$

    RewriteCond %{HTTP_REFERER} !^http://(www.)?thisisyourwebsite.com/.*$ [NC]

    RewriteCond %{HTTP_REFERER} !^https://(www.)?thisisyourwebsite.com/.*$ [NC]

    RewriteCond %{HTTP_REFERER} !^http://(www.)?yoursisterdomain.com/.*$ [NC]

    RewriteRule .(gif|jpg|jpeg|png|bmp|js|css|xsl|mpg|mov)$ - [F]

    Replace the domain name examples above with your own domain name. If someone tries to steal your content and publish it on their own website while it is still hosted in your server (this is called “hot linking”), it will be blocked and denied by the server.

    Next, if there are links pointing to the location of your downloads, captcha is used so that bots will not be able to download the file unintentionally (only humans are allowed to access downloadable content). This will also save some bandwidth.

    Finally, GZIP compression is enabled in the server. There are a lot of ways to do this; discussing them is beyond the scope of this article. The images are also resized so that they won’t consume a lot of bandwidth while the site is loading.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    WEB HOSTING HOW-TOS ARTICLES

    - Phishing Scams: An Overview and How to Detec...
    - Tips for Safe Downloading Online
    - How To Avoid Spam
    - How to Get Into Ethical Hacking
    - How to Prevent Drive-by Downloads
    - Facebook Timeline Tips and Tricks
    - How to Keep Up with Facebook`s Changes
    - Wi-Fi Network Security Tips
    - Tips for Safe Online Holiday Shopping
    - Facebook Privacy: Keeping Up with the Const...
    - Tips for Facebook Privacy
    - How to Cover Your Tracks on the Web
    - SSH Keys for FileZilla and Putty in Cpanel
    - How to Create a Filezilla FTP User
    - How to Install FileZilla Server

    Developer Shed Affiliates

     




    © 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap