5kyy8lu3 Posted December 12, 2008 Share Posted December 12, 2008 Hi. I wasn't exactly sure where I should have asked this but here it goes. I want to disable hot-linking of images on my webhost. The problem is, I would like a single directory (example: /public_html/pictures/) as an exception because I host my own signatures, avatars, etc for forums I visit, and often post pictures on those forums, and so it would be really convenient to be able to have an entire directory as an exception to the hotlinking protection, is this possible? i do know that I can set certain domains as exceptions but that's just not controlled enough for me but if that's my only choice I guess i'll have to settle with that. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/136623-htaccess-hotlink-protection-with-a-directory-exception/ Share on other sites More sharing options...
corbin Posted December 12, 2008 Share Posted December 12, 2008 Have you tried anything yet? Quote Link to comment https://forums.phpfreaks.com/topic/136623-htaccess-hotlink-protection-with-a-directory-exception/#findComment-714240 Share on other sites More sharing options...
5kyy8lu3 Posted December 13, 2008 Author Share Posted December 13, 2008 Have you tried anything yet? i haven't found anything yet, this might not be possible lol, i'll keep reading and searching though. i'll definitely report back with results if i find anything that works. Quote Link to comment https://forums.phpfreaks.com/topic/136623-htaccess-hotlink-protection-with-a-directory-exception/#findComment-714457 Share on other sites More sharing options...
corbin Posted December 13, 2008 Share Posted December 13, 2008 It's definitely possible. mod_rewrite with a rewrite cond. Quote Link to comment https://forums.phpfreaks.com/topic/136623-htaccess-hotlink-protection-with-a-directory-exception/#findComment-714628 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.