Reduce code bloat, the number of graphics used, and run your images through some optimizer to reduce their size. Of course you could also hide the site so nobody could find it. That would reduce the bandwidth used
This is a pretty handy tool to see what's big an what's not. http://www.websiteoptimization.com/services/analyze/ Use one-line-per-element CSS rules; use shorthand CSS properties (e.g. font instead of font-family, font-size, etc); use palette-based images where possible (PNG or GIF). Avoid using deprecated HTML (font, valign, etc). Share stylesheets and scripts instead of duplicating them on every page. J.D.
i want to reduce bandwidth for my site www.cash-for-surveys.com any suggestions for it? Thanks in advance
Do what they comment above: You html code could be much better optimized (css based using shorthands) Optimize your images: checking your main page I see that at least you can save a few kb. If you have a lot visitors (that's why you want reduce bandwith right?) you'll save a lot. Send your html gzip compressed when possible.
By the way, Why do you want to reduce bandwidth? Are you finding it that expensive? I'm always just curious because every site I have, when the bandwidth increases so does the revenue so its never been seen as an issue.
the reason of increasing bandwidth is my site is getting more n more visitors and robots.But there is no increment in revenue.
Hi, I got your email. Sorry for the missunderstading but with "Send your html gzip compressed when possible" I meant: use php ob_start ("ob_gzhandler") Code (markup): that sends the html compressed to brownsers that accept gziped html and uncompressed to those that do not. I am sorry but I doubt I have time to redesign your site. However, I will go now with some more explained tips that I hope could help (and btw, this time there will be no missunderstanding by replying so quick). A)Use PHP to compress the HTML: Use .php in your files or tell your server to parse html. Then, at the very top of every page put <?php ob_start( 'ob_gzhandler' ); ?> Code (markup): Please note that this option has to be available on your server. B)Redesign the site: to much tables, its a "tag soup". Code like this <BODY BGCOLOR=#FFFFFF background="images/turquoise.gif" tppabs="http://www.cash-for-surveys.com/images/turquoise.gif" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> Code (markup): and like this <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FF6600"> Code (markup): has to be dowloaded everytime you visit the site. This could be avoided by doing a good use of (x)html and css. But that's to long. Personally I think you need to rebuild from scracht. C)Optimize you images: by using photoshop the image bulina.gif went from 3.22kb to 1.73kb and I really didn't notice the difference on its quality. Also, lg_casro.gif wen from 4.97kb to 2.87kb. Also, if you can, get ride of unnecesary images. Is the visitor counter strictly necessary? That big? could it be text based? The banner at ./images/banners/800x60/03.gif is 32kb. Work on it. D) You have to determine where the bandwith usage comes from. If they are bots, you can block via .htacces. Following the list I use: RewriteCond %{HTTP_USER_AGENT} (BlackWidow|Crescent|Disco|ExtractorPro|Franklin|Harvest|HLoader|NetZIP|NICErsPRO|NPBot|PlantyNet_WebRobot|Teleport|TurnitinBot|VoidEYE|WebBandit|WebCopier|Websnatcher|Zeusattach|BackWeb|Bandit|tchFTP|Buddy|ChinaClaw|Collector|Copier|Bot\mailto:craftbot@yahoo.com|DISCo\Pump|Download\Demon|Download\Wonder|Downloader|Drip|eCatch|EirGrabber|Email|Express\WebPictures|ExtractorPro|EyeNetIE|GetRight|GetSmart|Go-Ahead-Got-It|gotit|Grabber|GrabNet|Grafula|HMView|HTTrack|InterGET|Internet\Ninja|InternetSeer.com|Iria|JetCar|JOC|JustView|LeechFTP|lftp|likse|Magnet|Mag-Net|Mass\Downloader|Memo|MIDown\tool|Mirror|Mister\PiX|Navroad|NearSite|NetAnts|NetSpider|Net\Vampire|NetZip|Ninja|Octopus|PageGrabber|Papa\Foto|pcBrowser|Pump|Reaper|Recorder|ReGet|Siphon|SiteSnagger|Snake|Stripper|Sucker|SuperBot|SuperHTTP|Surfbot|tAkeOut|Teleport|vayala|Vacuum|VoidEYE|Web\Image\Collector|Web\Sucker|WebAuto|WebCopier|WebFetch|WebReaper|Website|Webster|WebStripper|WebZIP|Wget|Whacker|Widow|Xaldon) [NC,OR] Code (markup): (more can be added or removed depending on your situation). D.2) IF you traffic comes from normal bots like MSN or Slurp, try to use some metas like "revisit after..." E) Sure you need some of these meta-tags (abstract, timestamp, and that many keywords"? Check them to, not many but few bits can be saved. You have some work now to do. Personally, I would reccommed to learn how to use css. Or to find a host that gives more bandwith at a good rate. Hope I helped. Also if someone sees any mistake above please post, so it will help me to.
<?php ob_start( 'ob_gzhandler' ); ?> This code starts a php function that, basically, does the following: Your server: "Hello Browser, do you accept gzip?" Brownser: "Yes, I do, give me it compressed" Your server: "Ok, here you have" ... Brownser: "No, I do not. What are you talking about?" Your server: "Doesn't matter, just have the normal version" Basically, what is does is send the data (the text, not images) compressed. More explained: If the browser understand compressed date, your server comprress the html (like zipping it), sends it, and the browser uncomppres (unzip) the data and then displays it. This means more CPU usage on the server, but less bandwith wasted. I have not posted many times so I suposse I can not put live links here, but yuo can check your page wit the tool at pipeboost.com and it will give an indication on how much you can save. Also, note that pages will load more quickly. Note too that old browsers will receive the page as they used. And finally, some people says that there have been problem with Netscape 4 crashing. But do you still care about Netscape 4?
Unlimited bandwith hosting + domain name = about $75 pa - The time it takes to optimize everything, it might be easier to change hosts.
You are totally right and it has been suggested before, but the question was "how to reduce bandwith". You can have unlimited bandwidth at a nice rate, and optimizing everything is a hard work, I agree. But a litle bit out of the topic: optimizing the page makes it dowload faster. So maybe next time, he begins doing it the right way giving therefore users a better experience. And BTW, future maintenance of the site will be easier trough CSS.
Another way to reduce traffic is to turn on content expiration. That is, with every response, HTTP server will send either an Expires and/or Cache-Control header that will instruct browsers/proxies to cache files served this way for the amount of time specified in either of these directives. The next time the page is requested, the browser will not request these files. It usually is a good idea to allow content to be cached for at least an hour and sometimes it can be a day or even more, depending on how your website is being used. Here's more info on this: http://httpd.apache.org/docs-2.0/mod/mod_expires.html I usually enable expiration for all images, stylesheets and client-side scripts. J.D.