![]() |
Block access to content with htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Block access to content with htaccess (/showthread.php?tid=76671) |
Block access to content with htaccess - ElTomTom - 06-08-2020 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 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. RE: Block access to content with htaccess - jreklund - 06-08-2020 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> |