Loading...
February 19, 2011#

Turning off the ezinfo “about” view

The ezinfo module provides useful information about your eZ Publish build. Unfortunately though, by default, it provides a public view for any user to view information about your eZ Publish version, and about any extensions you have installed (visit yoursite/ezinfo/about). Although as a developer this is useful it really is less than ideal that this information is available to all but luckily it is easy to turn off.

Turning off the view

The about view can be seen below:

eZ Info Module About view

eZ Info Module About view - the view of a fairly standard local installation

You can turn it off site wide or for a particular site access, in my case I will turn it off for all off them. It should be noted that for the admin siteaccess the view will sit behind a login and so it is more secure anyway.

Modules and views can be turned off within the site.ini file (in my case I am using the file sitting here: /settings/override/site.ini.append.php).

To disable a whole module (in our case ezinfo) add this code:

[SiteAccessRules]
Rules[]=access;enable
Rules[]=moduleall
Rules[]=access;disable
Rules[]=module;ezinfo

Or, to only disable the about view, use this code (add additional rules below the last line if required):

[SiteAccessRules]
Rules[]=access;enable
Rules[]=moduleall
Rules[]=access;disable
Rules[]=module;ezinfo/about

In either case, when you try to view the about page you will now see an error page instead:

Denied View message

Turning off the view for ezinfo/about gives you this error message

Further Reading

Leave a Comment