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

#1
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.



Code:
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.
Reply

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

Code:
<IfModule authz_core_module>
    Require all denied
</IfModule>
<IfModule !authz_core_module>
    Deny from all
</IfModule>
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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