...
Comment out code in ./confluence/conf-webapp/src/main/webapp/template/includes/macros.vm that allows anon to do anything other than view around line 1133.
Fixing the anonymous problem
If you allow anonymous to view a space but don't explicitly give specific userids access to view the space, only anonymous will be able to view the space.
...