• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Block access to content with htaccess

Is there a problem creating an htaccess file that blocks direct access to PHP files?

My plan is to put this file inside the application folder and recursively this block will occur for other folders.

Order allow,deny
Deny from all

I initially thought about doing this to avoid accessing the third_parties folder and php files that do not have a lock for direct access.

CodeIgniter already have those settings for application and system. If it's not working, you don't have "AllowOverride All".

<IfModule authz_core_module>
    Require all denied
<IfModule !authz_core_module>
    Deny from all

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.