|
Band width is the data transfered from the server to client and viceversa.
When a visitor comes to your site he surfs thru your web site. This means he was downloading data from your web site server.
Activities like viewing web pages, images and downloading your zip and exe files, all uses your band width. But an average web site with 100-200 visitors per day can get along well with the regular alloted band width on their hosting plan.
Here are few tips on saving your band width usage:
1. When creating subdomains and giving access to your visitors think twice before doing this. Because all the files downloading from their folder comes to your account.
2. Try to minimize the number and size of images that you use on your web site.
4. Stop hot linking of your web pages and images by others:
Hot linking is when someone links directly to your images or content from their site. So they don't have to use there bandwidth. This is called 'band width theft'.
You can stop this hot linking by this methods:-
By using '.htaccess' file: When you are on Apache server and you are enabled 'Rewrite Mode' on your server.J ust ask your web host that you are Rewrite mode enabled.
You have to keep a '.htaccess' file in the root directory, if you want to protect your entire domain images from hot linking. Or if you want to protect images in one folder you can keep this file in that particular folder.
How to create the '.htaccess' file:
1. Open your Notepad or any text editor.
2. Paste these lines-
Rewriteengine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.your_other_domain.com/.*$ [NC] RewriteRule \.(gif|jpg)$ http://www.yourdomain.com/error.gif
Third, fourth and fifth lines are with your domain names or domain names that you want to give access to your image files. You can add any domain names like this.
Change 'yourdomain' to your web site names.
You can add or delete file extentions as per your requirement in the last line and replace error.gif with your gif name.
Save this as 'htaccess' on your computer.
3. Upload this file by ASCII mode by your FTP software.
4. Rename it as .htaccess.We can not access the files that starts with a 'period'.
Let us develop customized website for you or see our Latest Promo package.
|