Thread:Project:Support desk/How do hide "SpecialPages" for anonymous users?/reply

Let me rephrase your question: You want that, if a user does not have access to a special page, this page should not be linked in menus.

For the sidebar, there are two hooks, which I could find quickly: Manual:Hooks/SidebarBeforeOutput and Manual:Hooks/SkinBuildSidebar. According to the manual pages, you should better use SkinBuildSidebar as that one would be better for caching.

Anyway, I am pretty sure that there still are links to special pages more or less everywhere in your wiki. I do not know a way to hide them all - basically MediaWiki is not made for access protection.