Re: Lesson learned & Warning
Quote:
Originally posted by mirepup
Keep your eyes open for "topfong.com" in your referrers logs. Someone had hotlinked all 20 images on one of my TGP galleries into a message there. I had nearly 3GB of traffic from that one message. There were a few others that were suspicious.
I've shut them down down, and protected that directory.
So - I've blocked hotlinking. All they get are broken images, but they're still using bout 1/2GB per day of traffic. Not a lot, not causing overages, but I'm wondering if there's another way to block this more effectively? They're still showing 2000+ "hits" per day. Can I block them at another level or in some other way?
Anybody?
Re: Re: Lesson learned & Warning
Greetings:
Quote:
Originally posted by mirepup
Can I block them at another level or in some other way?
Anybody?
When you block referrers via .htaccess, the request is still being made from the client to the webserver (in this case, Apache). Along with the URL being requested, other information, such as browser type, and referring URL are also being passed to Apache by the client. Apache also generates the error response (401), and returns that to the client. This is why you're still seeing the 1/2 gig of traffic.
There's no way, using Apache alone, to stop this bandwidth consumption. Many providers will charge for "outgoing traffic only", in which case the bandwidth being consumed by incoming requests isn't charged against your monthly bandwidth usage. Might be something to look into.
You were right about being able to block things "at another level". Many IDSs (Intrusion Detection Systems) and Firewalls can be set to hijack these connection requests based on referring url, lack of cookie presence, etc. In that case, you can stop the traffic before if ever reaches the webserver. Unfortunately, I have never seen a third-party hosting solution that offers such features.
If it were me, I would flat out block access to every country that I didn't intend to do business in for starters. Chinese visitors to my site? No thank you! Russians? Sorry, I think not!
Then, I'd set up to block hotlinking to all of the rest of the countries that I DO intend to do business in. I'd set up mod_rewrite to dynamically change hotlink requests for images to requests for banners advertising my site. Then, if someone hotlinks, they'll be doing branding for you if they're too stupid to realize that the link didn't work as they had intended. Cheap advertising!
Blodking Hotlinking in .htaccess?
Hey I'm still new to working with .htaccess files. How exactly do you stop hotlinking to images?