Forum Moderators: LifeinAsia
Problem is bandwidth. Site is under 100mb in size without a prob, but pending recent stats and how it ends up in the next refresh in SEs the site will maintain 30gb a month of bandwith.
Short of asking for hosting companies, does anyone know of ways to help stop other sites from leaching images and such or anything I can do to streamline?
Note: Other then logo and one main image, page is stylesheet and text and few very small images(4).
Any ideas would help.
- edge
You can defend yourself by identifying the leech's IP and URL and then banning them using .htaccess. There are a few threads here on WebmasterWorld that discuss this. Do a search on htaccess and images and you should get some decent results to read through.
Try to identify what else is sucking up bandwidth. There are a variety of things that you can do to streamline your website. Most of it has to do with optimizing code, caching, and reduction of the use of images and other bandwidth hogs like movies.
A few searches should yield what you need.
Then you create a new image called image.gif (no longer used by your site), that has the text, "this image was used without permission from www.yoursite.com - please visit us for the appropriate image".
Scott
mod_rewrite: Make sure the referring URL on the graphic request is your site. If not, serve up a 404 or a 1x1 graphic.
Code: You can do this easily in PHP/ASP, or anything else really. Just make all of your graphics requested from a dynmic file that serves the graphic when called, such as:
mysite.com/image.asp?id=whatever.jpg And then disallow access to the actual directory that the images are contained in except for local script access.
You rename image.gif to image2.gif
It might be easier to put the "real" image files in a new directory that way you could do a global search & replace for images -> img or whatever, then you could easily create the "visit www.widget.com" icons in the "old" directory.
But you definitely should look into banning remote serving of the images with you htaccess.
[webmasterworld.com...]