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. 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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.