2
This is a question that has been brought up numerous times. Try doing a search for more indepth answers, but here's a rundown:
If you are on localhost, you need to right-click the mainfile.php and select read-only in the properties.
If you have your site on a hosted server, you will need to contact your host and request read-only to be applied.