andrewholway Posted February 1, 2007 Share Posted February 1, 2007 Hi, Ive got some parts of my site that I would like secure and some that I want east acces to caus Im hotlinking some stuff to other sites. / needs to be secure so I have AuthName "Restricted Area" AuthType Basic AuthUserFile /var/htdocs/.htpasswd AuthGroupFile /dev/null require valid-user bit I want /pics/avatar.gif/ to be freely available. Any Ideas? Cheers, Andy Link to comment https://forums.phpfreaks.com/topic/36661-htaccess-permission/ Share on other sites More sharing options...
the_oliver Posted February 5, 2007 Share Posted February 5, 2007 As far as i know you cannot protect a directory but exclude parts with-in it. You could split your site tree. EG: Have a main folder not protected. In this have a protected folder and a non protected folder. Then just link between the two. Link to comment https://forums.phpfreaks.com/topic/36661-htaccess-permission/#findComment-177801 Share on other sites More sharing options...
andrewholway Posted February 6, 2007 Author Share Posted February 6, 2007 Yeah, Starting to come round to the idea that its not really possible. Or if it is, its going to be a pain in the ass. Someone suggested making some filetypes password protected others not...... meh I think I should just organise things appropriatly. i.e http(s)://secure.mydomain.co.uk and http://open.mydomain.co.uk Cheers for the help tho Andy Link to comment https://forums.phpfreaks.com/topic/36661-htaccess-permission/#findComment-177836 Share on other sites More sharing options...
the_oliver Posted February 6, 2007 Share Posted February 6, 2007 Sounds like a much better idea! especialy as inevitabley not all file types will be secure or not! Link to comment https://forums.phpfreaks.com/topic/36661-htaccess-permission/#findComment-178253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.