Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite rules to prevent access to assets folder and contents?
#1

[eluser]Unknown[/eluser]
Hello,
I'm struggling with coming up with the correct .htaccess rules to prevent direct external access from the contents of my CI project assets folder (and subfolders). Any suggestions?
regards,
Bob
#2

[eluser]csotelo[/eluser]
check this...

http://stackoverflow.com/questions/52524...figuration
#3

[eluser]Unknown[/eluser]
Thanks!

After much thrashing around, I found that putting these lines in .htaccess at the root of my project did the trick:

# prevent directory browsing
Options All -Indexes
# prevent folder listing
IndexIgnore *

http://perishablepress.com/stupid-htaccess-tricks/

-Bob




Theme © iAndrew 2016 - Forum software by © MyBB