Originally posted by outie
Speaking of hotlink protection... one of my clients has a huge traffic site. His site is for image upload and some large forums link the images from his site.
He used hotlink protectioin to protect other people from linking images from his site (to save bandwidth) and directed them all to one single image file.
This created a huge server load on my server (70% on a p4 1.7). Is that normal or he didn't do it right? When he removed the redirect protection it was down to 1% load.
cPanel.net Support Ticket Number:
Probably doing it incorrectly.
That's why, in my earlier post, I mentioned that I use 'F' instead of 'R' in the rewrite rule.
RewriteRule .*\.(gif|jpg)$
http://www.theirdomain.com/images/blank.gif - [R,L]
Some people use the above type code and don't realize they are setting up an endless loop.
If you tell the Server to re-direct people, not authorized to use an 'gif' image for example, to a page that "has" a gif image, or an image itself as some like to do, the re-write kicks in and there is now an endless loop. This is because they are still trying to 'pull' or 'steal' something they are not allowed to do -- according to the Server anyway.
The coding to use 'R' and not create an endless is a bit different (it would seem) as it depends on the OS, Server setup, etc. Using:
RewriteRule .*\.(gif|jpg)$ - [F,L]
works each time, every time -- that I know of.
cPanel.net Support Ticket Number: