CodeIgniter Forums

Full Version: Protect a directory?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]mzuser[/eluser]
I know first thing people are going to say is htaccess. I've tried two methods with htaccess, a redirect and completely disabling files.

HOWEVER...

This also makes this directory unusable by my site. Basically I have a folder of audio clips I'm trying to protect, while still allowing them to play on my website.


Any ideas?

El Forum

[eluser]jonyr[/eluser]
Maybe is a good idea to move this folder behind wwwroot.
In this way, the content of this folder couldnĀ“t be accessed from the browser.

El Forum

[eluser]Buso[/eluser]
the htaccess example from the userguide should work too

http://ellislab.com/codeigniter/user-gui.../urls.html

El Forum

[eluser]John_Betong[/eluser]
Try this method:
http://johns-jokes.com/downloads/sp/memilanuk/