Category: CodeIgniter

Things to keep in mind for safeguarding Codeigniter 3 websites
Anti-CSRF (Cross-Site Request Forgery) tokens To protect Codeigniter3 web applications from malicious attacks, it provides built-in CSRF protection. It can be enabled by making $config[‘csrf_protection’] = TRUE in the application/config/config.php file. Then include the CSRF token in the form. A CSRF token is valid for a single form submission. A new token is generated for…
Routing in CodeIgniter with Nginx
Routing in CodeIgniter with Nginx While setting up Codeigniter in Nginx if a 404 error occurs when you have to set Codeigniter for subfolders in Nginx. For that open /etc/Nginx/sites-available/default and then add the following code to the configuration: #Codeigniter in subfolder location/Codeigniter-3-1-4 { try_file $uri $uri/ /Codeigniter-3-1-4/index.php;}