Last active
April 27, 2018 19:15
-
-
Save stevewithington/92907f94b8955e24a81a to your computer and use it in GitHub Desktop.
Mura CMS : How to disable front end tools and front end editing for public facing sites. This would then allow you to completely delete/remove the 'admin' directory from the production server, and only host it on a dev/staging server that's hosted behind a firewall, assuming each instance is pointing to the same database. NOTE: Do NOT delete you…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
1) Drop this method in your /config/cfapplication.cfm and modify it as you wish. | |
For example, maybe you only want to allow front end tools if editing the site behind your firewall | |
---> | |
<cfscript> | |
public boolean function getEnableFrontEndTools() { | |
return getPageContext().getRequest().getServerName() == 'someURLAccessibleOnlyBehindYourFirewall.com'; | |
} | |
</cfscript> | |
<!--- | |
2) Edit the /config/settings.ini.cfm and add the following setting | |
This setting will now be dynamically read in by Mura by calling the method defined above. | |
---> | |
enableFrontEndTools=${getEnableFrontEndTools()} | |
<!--- 3) Finally, reload Mura! ---> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment