Joomla is a great content management system. But it needs a few measures, that will protect your Joomla website from being compromised.
The major challenge in Joomla is to ensure that the PHP files in public_html (also known as httpdocs or www, may vary according to your setup) containing private or executable code have to be protected from direct internet access. There are a lot of ways to protect these files. But many users and developers don’t find it healthy way to keep such private files or executable files in public_html.
The following method is the simplest and most clear way to protect the read-only files, which must be necessarily stored in the public_html.
In this article we consider the example of the protection of configuration.php which is one of the most secret files or rather a confidential file in this Joomla site.