CodeIgniter: Is it safe to delete index.html from all folders?

Viewed 3403

I'm new to CodeIgniter. I notice that all CodeIgniter folders (cache, config, controllers, core, errors, etc...) contains an index.html file that basically says "Directory access is forbidden". Correct me if I'm wrong, but I don't think it is possible to get to any of these folders from the web based on CodeIgniter's default configuration.

What is the purpose of these index.html files? Can I just delete them, or do I leave them alone?

Thanks much.

5 Answers

They are for your security, if someone tries to access your folder on the server by your domain URL (if your server is configured in a wrong way), it will prevent you from loading those files by triggering that HTML file

It would be safe for you to keep the file indeed.

Related