Thread:Extension talk:ConfirmAccount/How to deny to login-type-signup page or redirect to requestAccount page?/reply (3)

Well, some extensions do things like: specials/SpecialTranslationStash.php 31-            if ( !$this->hasPermissionToUse ) { 32-                    if ( $this->getUser->isLoggedIn ) { 33:                            $out->redirect( 34-                                     Title::newFromText( $wgTranslateSecondaryPermissionUrl )->getLocalUrl 35-                             ); You could probably code your conditions and execute them via an appropriate hook.

However I'm not convinced this is really what you need: if "anonymous user can register himself" for real, you didn't configure your MediaWiki correctly. Pleae read the documentation again and check that you did as it says:
 * put the configuration in the correct order in your LocalSettings.php,
 * don't add  or similar.