View Single Post
Old 06-19-2004, 07:31 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally posted by alexg
I need a htaccess code that blocks hotlinking to images that take more then 10k in size.

Images smaller then 10k can be hotlinked, but if someone tries to hotlink to a bigger image it will redirect him to the URL that I specify...

can this be arranged? maybe someone has a similar code premade..I'd appreciate that
mod_rewrite doesnt allow you to specify image size but you can use an external program that will

like whip up something in perl to check the file size and you could execute it from mod_rewrite.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote