...
Warning |
---|
When in production mode, On the other hand, when editing a Note that this setting can be made directly from the back-office, in the "Performance" page under the "Advanced parameters" menu. |
Keeping things secure
Once your module is online, its files could be accessed by anyone from the Internet. Even if they cannot trigger anything but PHP errors, you might want to prevent this from happening.
You can achieve this by adding a index.php
file at the root of any module folder you create. Here is a suggestion for what to put in the file.
Code Block |
---|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit; |