Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB