CINXE.COM
Manual:Preventing access - MediaWiki
<!doctype html> <html class="client-nojs vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <base href="https://www.mediawiki.org/wiki/Manual:Preventing_access"> <meta charset="UTF-8"> <title>Manual:Preventing access - MediaWiki</title> <script>(function(){var className="client-js vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )mediawikiwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"62736e79-a8bc-4977-b99b-e88b8b6c24f8","wgCanonicalNamespace":"Manual","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":100,"wgPageName":"Manual:Preventing_access","wgTitle":"Preventing access","wgCurRevisionId":6695813,"wgRevisionId":6695813,"wgArticleId":13681,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Page specific user rights extensions","MediaWiki configuration","Configure","Permission","Namespace"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Manual:Preventing_access","wgRelevantArticleId":13681,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["autoconfirmed"],"wgRestrictionMove":["autoconfirmed"],"wgNoticeProject":"mediawiki", "wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":30000,"wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready","ext.pygments":"ready", "skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.gadget.syntaxhighlight-copy","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:site_name" content="MediaWiki"> <meta property="og:title" content="Manual:Preventing access - MediaWiki"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.mediawiki.org/wiki/Manual:Preventing_access"> <link rel="apple-touch-icon" href="/static/apple-touch/mediawiki.png"> <link rel="icon" href="/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="MediaWiki (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.mediawiki.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.mediawiki.org/wiki/Manual:Preventing_access"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org"> <link rel="dns-prefetch" href="//login.wikimedia.org"> <meta http-equiv="X-Translated-By" content="Google"> <meta http-equiv="X-Translated-To" content="en"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.1hbgkFx4Qn8.O/am=DgY/d=1/rs=AN8SPfqlmAPxwfG457BPbRXwNq39oSMGHg/m=corsproxy" data-sourceurl="https://www.mediawiki.org/wiki/Manual:Preventing_access"></script> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.1hbgkFx4Qn8.O/am=DgY/d=1/exm=corsproxy/ed=1/rs=AN8SPfqlmAPxwfG457BPbRXwNq39oSMGHg/m=phishing_protection" data-phishing-protection-enabled="false" data-forms-warning-enabled="true" data-source-url="https://www.mediawiki.org/wiki/Manual:Preventing_access"></script> <meta name="robots" content="none"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-100 ns-subject page-Manual_Preventing_access rootpage-Manual_Preventing_access skin-vector-2022 action-view"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.1hbgkFx4Qn8.O/am=DgY/d=1/exm=corsproxy,phishing_protection/ed=1/rs=AN8SPfqlmAPxwfG457BPbRXwNq39oSMGHg/m=navigationui" data-environment="prod" data-proxy-url="https://www-mediawiki-org.translate.goog" data-proxy-full-url="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-source-url="https://www.mediawiki.org/wiki/Manual:Preventing_access" data-source-language="auto" data-target-language="en" data-display-language="en-GB" data-detected-source-language="en" data-is-source-untranslated="false" data-source-untranslated-url="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://www.mediawiki.org/wiki/Manual:Preventing_access&anno=2" data-client="tr"></script><a class="mw-jump-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right"><input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu"> <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true"><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container"> <div class="vector-pinnable-header-label"> Main menu </div><button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation"> <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/MediaWiki?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li> <li id="n-mw-download" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Download?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Get MediaWiki</span></a></li> <li id="n-mw-extensions" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Category:Extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Get extensions</span></a></li> <li id="n-blog-text" class="mw-list-item"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://techblog.wikimedia.org/"><span>Tech blog</span></a></li> <li id="n-mw-contribute" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/How_to_contribute?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Contribute</span></a></li> </ul> </div> </div> <div id="p-support" class="vector-menu mw-portlet mw-portlet-support"> <div class="vector-menu-heading"> Support </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Help:Contents?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="The place to find out"><span>User help</span></a></li> <li id="n-mw-faq" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:FAQ?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>FAQ</span></a></li> <li id="n-mw-manual" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Contents?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Technical manual</span></a></li> <li id="n-mw-supportdesk" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Project:Support_desk?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Support desk</span></a></li> <li id="n-mw-communication" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Communication?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Communication</span></a></li> </ul> </div> </div> <div id="p-development" class="vector-menu mw-portlet mw-portlet-development"> <div class="vector-menu-heading"> Development </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mw-developerportal" class="mw-list-item"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://developer.wikimedia.org/"><span>Developer portal</span></a></li> <li id="n-svn-statistics" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Development_statistics?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Code statistics</span></a></li> </ul> </div> </div> <div id="p-mediawiki.org" class="vector-menu mw-portlet mw-portlet-mediawiki_org"> <div class="vector-menu-heading"> mediawiki.org </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Project:Help?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li> <li id="n-recentchanges" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:RecentChanges?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li> <li id="n-mw-translate" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:LanguageStats?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Translate content</span></a></li> <li id="n-randompage" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:Random?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li> <li id="n-mw-discussion" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Project:Village_Pump?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Village pump</span></a></li> <li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Project:Sandbox?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Sandbox</span></a></li> </ul> </div> </div> <div id="p-lang" class="vector-menu mw-portlet mw-portlet-lang"> <div class="vector-menu-heading"> In other languages </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"> <span class="wb-langlinks-add wb-langlinks-link"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://www.wikidata.org/wiki/Special:NewItem?site%3Dmediawikiwiki%26page%3DManual%253APreventing%2Baccess" title="Add interlanguage links" class="wbc-editpage">Add links</a></span> </div> </div> </div> </div> </div> </div> </div> </nav><a href="https://www-mediawiki-org.translate.goog/wiki/MediaWiki?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:Search?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search MediaWiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"><input class="cdx-text-input__input" type="search" name="search" placeholder="Search MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [f]" accesskey="f" id="searchInput"> <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div><input type="hidden" name="title" value="Special:Search"> </div><button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a></li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color"><input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance"> <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true"><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://donate.wikimedia.org/?utm_source%3Ddonate%26utm_medium%3Dsidebar%26utm_campaign%3Dspontaneous%26uselang%3Den" class=""><span>Donate</span></a></li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:CreateAccount&returnto=Manual:Preventing+access&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a></li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:UserLogin&returnto=Manual:Preventing+access&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a></li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="More options"><input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools"> <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true"><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://donate.wikimedia.org/?utm_source%3Ddonate%26utm_medium%3Dsidebar%26utm_campaign%3Dspontaneous%26uselang%3Den"><span>Donate</span></a></li> <li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:CreateAccount&returnto=Manual:Preventing+access&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li> <li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:UserLogin&returnto=Manual:Preventing+access&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor"> <div class="vector-menu-heading"> Pages for logged out editors <a href="https://www-mediawiki-org.translate.goog/wiki/Help:Introduction?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyContributions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li> <li id="pt-anontalk" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyTalk?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"> <!-- CentralNotice --> </div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc"> <h2 class="vector-pinnable-header-label">Contents</h2><button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#" class="vector-toc-link"> <div class="vector-toc-text"> Beginning </div></a></li> <li id="toc-Simple_private_wiki" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Simple_private_wiki"> <div class="vector-toc-text"><span class="vector-toc-numb">1</span> <span>Simple private wiki</span> </div></a> <ul id="toc-Simple_private_wiki-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_account_creation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_account_creation"> <div class="vector-toc-text"><span class="vector-toc-numb">2</span> <span>Restrict account creation</span> </div></a> <ul id="toc-Restrict_account_creation-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_editing" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing"> <div class="vector-toc-text"><span class="vector-toc-numb">3</span> <span>Restrict editing</span> </div></a> <button aria-controls="toc-Restrict_editing-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Restrict editing subsection</span> </button> <ul id="toc-Restrict_editing-sublist" class="vector-toc-list"> <li id="toc-Restrict_editing_of_all_pages" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_of_all_pages"> <div class="vector-toc-text"><span class="vector-toc-numb">3.1</span> <span>Restrict editing of all pages</span> </div></a> <ul id="toc-Restrict_editing_of_all_pages-sublist" class="vector-toc-list"> <li id="toc-Restrict_anonymous_editing" class="vector-toc-list-item vector-toc-level-3"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_anonymous_editing"> <div class="vector-toc-text"><span class="vector-toc-numb">3.1.1</span> <span>Restrict anonymous editing</span> </div></a> <ul id="toc-Restrict_anonymous_editing-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_editing_by_all_non-sysop_users" class="vector-toc-list-item vector-toc-level-3"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_by_all_non-sysop_users"> <div class="vector-toc-text"><span class="vector-toc-numb">3.1.2</span> <span>Restrict editing by all non-sysop users</span> </div></a> <ul id="toc-Restrict_editing_by_all_non-sysop_users-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_editing_by_absolutely_everyone" class="vector-toc-list-item vector-toc-level-3"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_by_absolutely_everyone"> <div class="vector-toc-text"><span class="vector-toc-numb">3.1.3</span> <span>Restrict editing by absolutely everyone</span> </div></a> <ul id="toc-Restrict_editing_by_absolutely_everyone-sublist" class="vector-toc-list"> </ul></li> </ul></li> <li id="toc-Restrict_editing_of_an_entire_namespace" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_of_an_entire_namespace"> <div class="vector-toc-text"><span class="vector-toc-numb">3.2</span> <span>Restrict editing of an entire namespace</span> </div></a> <ul id="toc-Restrict_editing_of_an_entire_namespace-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_editing_of_certain_specific_pages" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_of_certain_specific_pages"> <div class="vector-toc-text"><span class="vector-toc-numb">3.3</span> <span>Restrict editing of certain specific pages</span> </div></a> <ul id="toc-Restrict_editing_of_certain_specific_pages-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_editing_of_all_but_a_few_pages" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_of_all_but_a_few_pages"> <div class="vector-toc-text"><span class="vector-toc-numb">3.4</span> <span>Restrict editing of all but a few pages</span> </div></a> <ul id="toc-Restrict_editing_of_all_but_a_few_pages-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_editing_for_certain_IP_address_ranges" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_for_certain_IP_address_ranges"> <div class="vector-toc-text"><span class="vector-toc-numb">3.5</span> <span>Restrict editing for certain IP address ranges</span> </div></a> <ul id="toc-Restrict_editing_for_certain_IP_address_ranges-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_editing_by_a_particular_user" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_by_a_particular_user"> <div class="vector-toc-text"><span class="vector-toc-numb">3.6</span> <span>Restrict editing by a particular user</span> </div></a> <ul id="toc-Restrict_editing_by_a_particular_user-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_creating_of_all_pages" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_creating_of_all_pages"> <div class="vector-toc-text"><span class="vector-toc-numb">3.7</span> <span>Restrict creating of all pages</span> </div></a> <ul id="toc-Restrict_creating_of_all_pages-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_creating_pages_in_certain_namespaces" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_creating_pages_in_certain_namespaces"> <div class="vector-toc-text"><span class="vector-toc-numb">3.8</span> <span>Restrict creating pages in certain namespaces</span> </div></a> <ul id="toc-Restrict_creating_pages_in_certain_namespaces-sublist" class="vector-toc-list"> </ul></li> </ul></li> <li id="toc-Restrict_access_to_uploaded_files" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_access_to_uploaded_files"> <div class="vector-toc-text"><span class="vector-toc-numb">4</span> <span>Restrict access to uploaded files</span> </div></a> <button aria-controls="toc-Restrict_access_to_uploaded_files-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Restrict access to uploaded files subsection</span> </button> <ul id="toc-Restrict_access_to_uploaded_files-sublist" class="vector-toc-list"> <li id="toc-Example_for_access_restriction_to_uploaded_files_in_the_server_configuration" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Example_for_access_restriction_to_uploaded_files_in_the_server_configuration"> <div class="vector-toc-text"><span class="vector-toc-numb">4.1</span> <span>Example for access restriction to uploaded files in the server configuration</span> </div></a> <ul id="toc-Example_for_access_restriction_to_uploaded_files_in_the_server_configuration-sublist" class="vector-toc-list"> </ul></li> </ul></li> <li id="toc-Restrict_viewing" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_viewing"> <div class="vector-toc-text"><span class="vector-toc-numb">5</span> <span>Restrict viewing</span> </div></a> <button aria-controls="toc-Restrict_viewing-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Restrict viewing subsection</span> </button> <ul id="toc-Restrict_viewing-sublist" class="vector-toc-list"> <li id="toc-Restrict_viewing_of_all_pages" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_viewing_of_all_pages"> <div class="vector-toc-text"><span class="vector-toc-numb">5.1</span> <span>Restrict viewing of all pages</span> </div></a> <ul id="toc-Restrict_viewing_of_all_pages-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Restrict_viewing_of_certain_specific_pages" class="vector-toc-list-item vector-toc-level-2"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_viewing_of_certain_specific_pages"> <div class="vector-toc-text"><span class="vector-toc-numb">5.2</span> <span>Restrict viewing of certain specific pages</span> </div></a> <ul id="toc-Restrict_viewing_of_certain_specific_pages-sublist" class="vector-toc-list"> </ul></li> </ul></li> <li id="toc-Restricting_exporting" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restricting_exporting"> <div class="vector-toc-text"><span class="vector-toc-numb">6</span> <span>Restricting exporting</span> </div></a> <ul id="toc-Restricting_exporting-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Removing_the_Login_link_from_all_pages" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Removing_the_Login_link_from_all_pages"> <div class="vector-toc-text"><span class="vector-toc-numb">7</span> <span>Removing the Login link from all pages</span> </div></a> <ul id="toc-Removing_the_Login_link_from_all_pages-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Removing_accounts" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Removing_accounts"> <div class="vector-toc-text"><span class="vector-toc-numb">8</span> <span>Removing accounts</span> </div></a> <ul id="toc-Removing_accounts-sublist" class="vector-toc-list"> </ul></li> <li id="toc-Other_restrictions" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Other_restrictions"> <div class="vector-toc-text"><span class="vector-toc-numb">9</span> <span>Other restrictions</span> </div></a> <ul id="toc-Other_restrictions-sublist" class="vector-toc-list"> </ul></li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"><a class="vector-toc-link" href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#See_also"> <div class="vector-toc-text"><span class="vector-toc-numb">10</span> <span>See also</span> </div></a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul></li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left"><input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents"> <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true"><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Manual</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Preventing access</span></h1> <div class="mw-indicators"> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-manual" class="selected vector-tab-noicon mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="View the subject page [c]" accesskey="c"><span>Manual</span></a></li> <li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual_talk:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet"><input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant"> <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true"><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Read</span></a></li> <li id="ca-viewsource" class="vector-tab-noicon mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Manual:Preventing_access&action=edit&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="This page is protected. You can view its source [e]" accesskey="e"><span>View source</span></a></li> <li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Manual:Preventing_access&action=history&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown"><input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools"> <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true"><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container"> <div class="vector-pinnable-header-label"> Tools </div><button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options"> <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Read</span></a></li> <li id="ca-more-viewsource" class="vector-more-collapsible-item mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Manual:Preventing_access&action=edit&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>View source</span></a></li> <li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Manual:Preventing_access&action=history&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb"> <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:WhatLinksHere/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li> <li id="t-recentchangeslinked" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:RecentChangesLinked/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li> <li id="t-upload" class="mw-list-item"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://commons.wikimedia.org/wiki/Special:UploadWizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li> <li id="t-specialpages" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:SpecialPages?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li> <li id="t-permalink" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Manual:Preventing_access&oldid=6695813&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li> <li id="t-info" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Manual:Preventing_access&action=info&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="More information about this page"><span>Page information</span></a></li> <li id="t-cite" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:CiteThisPage&page=Manual:Preventing_access&id=6695813&wpFormIdentifier=titleform&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Information on how to cite this page"><span>Cite this page</span></a></li> <li id="t-urlshortener" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:UrlShortener&url=https://www.mediawiki.org/wiki/Manual:Preventing_access&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Get shortened URL</span></a></li> <li id="t-urlshortener-qrcode" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:QrCode&url=https://www.mediawiki.org/wiki/Manual:Preventing_access&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export"> <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:Book&bookcmd=book_creator&referer=Manual:Preventing+access&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Create a book</span></a></li> <li id="coll-download-as-rl" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:DownloadAsPdf&page=Manual:Preventing_access&action=show-download-screen&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB"><span>Download as PDF</span></a></li> <li id="t-print" class="mw-list-item"><a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Manual:Preventing_access&printable=yes&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet"> <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container"> <div class="vector-pinnable-header-label"> Appearance </div><button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div id="siteSub" class="noprint"> From mediawiki.org </div> </div> <div id="contentSub"> <div id="mw-content-subtitle"></div> </div> <div id="mw-content-text" class="mw-body-content"> <div class="mw-pt-translate-header noprint nomobile" dir="ltr" lang="en"> <a href="https://www-mediawiki-org.translate.goog/w/index.php?title=Special:Translate&group=page-Manual:Preventing+access&action=page&filter&action_source=translate_page&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:Translate">Translate this page</a> </div> <div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"> <div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"> <div class="mw-pt-languages-label"> Languages: </div> <ul class="mw-pt-languages-list"> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/id?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Manual:Mencegah akses (12% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/de?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Zugriff verhindern (13% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/dtp?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Manual:Preventing access/dtp (11% translated)" lang="dtp" dir="ltr">Kadazandusun</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/da?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Manual:Forhindring af adgang (5% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/es?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Manual:Prevenir el acceso (12% translated)" lang="es" dir="ltr">español</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/fr?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--complete" title="Manuel:Empêcher l'accès (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/it?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Manuale:Impedire l'accesso (12% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/pl?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Manual:Preventing access/pl (2% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/sv?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Manual:Förhindra tillgång (3% translated)" lang="sv" dir="ltr">svenska</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/cs?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--complete" title="Příručka:Zabránění přístupu (100% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/ru?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Руководство:Ограничение доступа (10% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/uk?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Посібник:Запобігання доступу (7% translated)" lang="uk" dir="ltr">українська</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/bn?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="ম্যানুয়াল: অ্যাক্সেস প্রতিরোধ করা (10% translated)" lang="bn" dir="ltr">বাংলা</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/am?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--low" title="Manual:Preventing access/am (1% translated)" lang="am" dir="ltr">አማርኛ</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/zh?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--high" title="手册:阻止访问 (96% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access/ja?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-pt-progress mw-pt-progress--high" title="Manual:アクセス制限 (80% translated)" lang="ja" dir="ltr">日本語</a></li> </ul> </div> <p>For help customizing user rights, see <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:User rights">Manual:User rights</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:User rights"> </a></span>. This page contains examples useful for restricting access.</p> <p>For information on how to edit <code>LocalSettings.php</code>, check <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:LocalSettings.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:LocalSettings.php">Manual:LocalSettings.php</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:LocalSettings.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:LocalSettings.php"> </a></span>.</p> <meta property="mw:PageProp/toc"> <p><span class="anchor" id="Disable_anonymous_reading"></span></p> <div class="mw-heading mw-heading2"> <h2 id="Simple_private_wiki">Simple private wiki</h2> </div> <p>For the common <a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/wiki/use_case" class="extiw" title="w:use case">use case</a> of "a private wiki, for oneself and approved others", you need to:</p> <ul> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_viewing_of_all_pages">Restrict viewing</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_of_all_pages">Restrict editing</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_account_creation">Restrict account creation</a></li> </ul> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"> <tbody> <tr> <td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x,https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20"></span></span></span> <b>Warning:</b></td> <td style="padding-left: 0.5em vertical-align: top;">See the warnings in the sections below; this is simple "general use" code, and may or may not match your requirements.</td> </tr> </tbody> </table> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="c1"># Disable reading by anonymous users</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'read'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="c1"># Disable anonymous editing</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'edit'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="c1"># Prevent new user registrations except by sysops</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'createaccount'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> </pre> </div> <p>Depending on what extensions you have installed, you may want to whitelist more pages. For example if you are using the <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:ConfirmAccount?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:ConfirmAccount">Extension:ConfirmAccount</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:ConfirmAccount?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:ConfirmAccount"> </a></span> extension, you probably want Special:RequestAccount whitelisted. If the content language of your wiki is not English, you may have to use the translated name of the special pages in question.</p> <div class="mw-heading mw-heading2"> <h2 id="Restrict_account_creation">Restrict account creation</h2> </div> <p>To restrict account creation, you need to edit <i>LocalSettings.php</i> in the root path of your MediaWiki installation.</p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="c1"># Prevent new user registrations except by sysops</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'createaccount'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> </pre> </div> <style data-mw-deduplicate="TemplateStyles:r6651107">.mw-parser-output .note{background-position:left 7px top 50%;padding:0.5em 0.5em 0.5em 40px;margin:0.5em 0;overflow:hidden;background-color:#f8f9fa;color:#333;background-repeat:no-repeat;border:1px solid #ddd}.mw-parser-output .note-inline{display:inline-block;vertical-align:middle}.mw-parser-output .note-info{background-color:#eaf3ff;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/e/ec/OOjs_UI_icon_information-progressive.svg");background-size:25px;border-color:#a3caff;padding-left:40px;min-height:25px}.mw-parser-output .note-reminder{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/a/a8/OOjs_UI_icon_lightbulb-yellow.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-warn{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/3/3b/OOjs_UI_icon_alert-warning.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-error{background-color:#fee7e6;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/b/bf/OOjs_UI_icon_notice-destructive.svg");background-size:25px;border-color:#c33;min-height:25px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .note{background-color:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .note{background-color:transparent;color:inherit}}</style> <div role="note" class="note note-info"> You can use the <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:ConfirmAccount?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:ConfirmAccount">ConfirmAccount</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:ConfirmAccount?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:ConfirmAccount"> </a></span> extension if you want to set up an account confirmation queue. (If not you may still proceed as follows.) </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"> <div role="note" class="note note-info"> New users will still be able to be created by sysops, in the following manner: </div> <ol> <li>Go to <span style="color:#0645AD;">Special:Userlogin</span>, when logged in as a sysop.</li> <li>Click on "Create an account" link to get to the account creation form.</li> <li>Enter a username and an email address, and click the "by email" button. Note you need <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgEnableEmail?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgEnableEmail">$wgEnableEmail=true</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgEnableEmail?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgEnableEmail"> </a></span> or else the sysop must pick a password and send it to the user.</li> <li>The account will be created with a random password which is then emailed to the given address (as with the "forgot password" feature). The user will be requested to change password at first login; when they do this, the email address will also be marked as confirmed. <dl> <dd> <small>When you click the "create account" button instead, you have to manually send the user their password. If you've set <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgMinimalPasswordLength?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgMinimalPasswordLength">$wgMinimalPasswordLength=0</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgMinimalPasswordLength?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgMinimalPasswordLength"> </a></span> (default configuration up to version 1.15) and you've left the password field blank, the user will be emailed an email address confirmation request but will be unable to access <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Interface/Special_pages_summary?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Interface/Special pages summary">Special:Confirmemail</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Interface/Special_pages_summary?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Interface/Special pages summary"> </a></span> to perform the confirmation. Instead, the user will get an error (unless you've added it to <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgWhitelistRead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgWhitelistRead">$wgWhitelistRead</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgWhitelistRead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgWhitelistRead"> </a></span>); the user will be able to login with a blank password and then confirm email, but their password will not have been reset (it will have to be reset manually).</small> </dd> </dl></li> </ol> <p>It may be appropriate to edit the text displayed when a non-user attempts to log in. This can be done at <a href="https://www-mediawiki-org.translate.goog/wiki/MediaWiki:Nosuchuser?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="MediaWiki:Nosuchuser">MediaWiki:Nosuchuser</a>, when logged in as a sysop. Use plain text without any special formatting, as the formatting is ignored and the text is literally rendered. (Might have changed, see <a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://bugzilla.wikimedia.org/12952" class="extiw" title="mediazilla:12952">bug 12952</a>).</p> <p>You may also modify the contents of the email sent to new users by editing the page <a href="https://www-mediawiki-org.translate.goog/wiki/MediaWiki:Createaccount-text?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="MediaWiki:Createaccount-text">MediaWiki:Createaccount-text</a>.</p> <p>To prevent even sysops from creating accounts:</p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="c1"># Prevent new user registrations by anyone</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'createaccount'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'sysop'</span><span class="p">][</span><span class="s1">'createaccount'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> </pre> </div> <p>To add a message on top of the login form, modify <a href="https://www-mediawiki-org.translate.goog/wiki/MediaWiki:Loginprompt?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="MediaWiki:Loginprompt">MediaWiki:Loginprompt</a>.</p> <div class="mw-heading mw-heading2"> <h2 id="Restrict_editing">Restrict editing</h2> </div> <div class="mw-heading mw-heading3"> <h3 id="Restrict_editing_of_all_pages">Restrict editing of all pages</h3> </div> <p>Users will still be able to read pages with these modifications, and they can view the source by using <a href="https://www-mediawiki-org.translate.goog/wiki/Special:Export/Article_name?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:Export/Article name">Special:Export/Article name</a> or other methods. See also <a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://bugzilla.wikimedia.org/1859" class="extiw" title="mediazilla:1859">bug 1859</a>.</p> <p>See <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Help:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Help:User rights">Help:User rights</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Help:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Help:User rights"> </a></span> and <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgGroupPermissions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgGroupPermissions">Manual:$wgGroupPermissions</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgGroupPermissions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgGroupPermissions"> </a></span>. If you use <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:AbuseFilter?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:AbuseFilter">Extension:AbuseFilter</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:AbuseFilter?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:AbuseFilter"> </a></span>, any wiki admin can also put various restrictions in place.</p> <p>Some examples of how to protect all pages from editing (not reading) by certain classes of users:</p> <div class="mw-heading mw-heading4"> <h4 id="Restrict_anonymous_editing">Restrict anonymous editing</h4> </div> <p>Requires that a user be registered before they can edit.</p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'edit'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> </pre> </div> <div class="mw-heading mw-heading4"> <h4 id="Restrict_editing_by_all_non-sysop_users">Restrict editing by all non-sysop users</h4> </div> <p>Requires that a user be a member of the administrators (sysop) usergroup.</p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'edit'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'user'</span><span class="p">][</span><span class="s1">'edit'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'sysop'</span><span class="p">][</span><span class="s1">'edit'</span><span class="p">]</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> </pre> </div> <div class="mw-heading mw-heading4"> <h4 id="Restrict_editing_by_absolutely_everyone">Restrict editing by absolutely everyone</h4> </div> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'edit'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'user'</span><span class="p">][</span><span class="s1">'edit'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'sysop'</span><span class="p">][</span><span class="s1">'edit'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> </pre> </div> <div class="mw-heading mw-heading3"> <h3 id="Restrict_editing_of_an_entire_namespace">Restrict editing of an entire namespace</h3> </div> <style data-mw-deduplicate="TemplateStyles:r4199130">.mw-parser-output .mw-version{border:1px solid #72777d;font-size:80%;line-height:1.2;border-collapse:collapse}.mw-parser-output .mw-version-ltr{float:right;margin:0 0 .5em .5em;text-align:right}.mw-parser-output .mw-version-rtl{float:left;margin:0 .5em .5em 0;text-align:left}.mw-parser-output .mw-version td{padding:.1em .3em}.mw-parser-output .mw-version-versionbox{border:5px solid #00af89;text-align:center}.mw-parser-output .mw-version-versionnumber{font-weight:bold;font-size:180%}.mw-parser-output .mw-version-version .mw-version-versionbox{border-color:#c8ccd1}.mw-parser-output .mw-version.mw-version-version2 .mw-version-versionbox{border-top-color:#c8ccd1;border-right-color:#c8ccd1;border-left-color:#c8ccd1}.mw-parser-output .mw-version-version-unsupported .mw-version-versionbox{border-color:#d33}.mw-parser-output .mw-version.mw-version-version2-unsupported .mw-version-versionbox{border-top-color:#d33;border-right-color:#d33;border-left-color:#d33}.mw-parser-output .mw-version-version-legacy .mw-version-versionbox{border-color:#f93}.mw-parser-output .mw-version.mw-version-version2-legacy .mw-version-versionbox{border-top-color:#f93;border-right-color:#f93;border-left-color:#f93}.mw-parser-output .mw-version-version-stable .mw-version-versionbox,.mw-parser-output .mw-version.mw-version.mw-version-and-later .mw-version-versionbox{border-color:#00af89}.mw-parser-output .mw-version.mw-version-version2-stable .mw-version-versionbox{border-top-color:#00af89;border-right-color:#00af89;border-left-color:#00af89}.mw-parser-output .mw-version-version-future .mw-version-versionbox{border-color:#8080c0}.mw-parser-output .mw-version.mw-version-version2-future .mw-version-versionbox{border-top-color:#8080c0;border-right-color:#8080c0;border-left-color:#8080c0}.mw-parser-output .mw-version-version-alpha .mw-version-versionbox{border-style:dotted}</style> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"> <tbody> <tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="The latest stable version is 1.42"> <div class="mw-version-versionnumber"> <small>≥</small> 1.10 </div></td> </tr> </tbody> </table> <p>Starting from MediaWiki version 1.10, it is possible to protect entire namespaces using the <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgNamespaceProtection?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgNamespaceProtection">$wgNamespaceProtection</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgNamespaceProtection?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgNamespaceProtection"> </a></span> variable. Examples:</p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="c1"># Only allow autoconfirmed users to edit Project namespace</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_PROJECT</span><span class="p">]</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span> <span class="s1">'autoconfirmed'</span> <span class="p">);</span> <span class="c1"># Don't allow anyone to edit non-talk pages until they've confirmed their</span> <span class="c1"># email address (assuming we have no custom namespaces and allow edits</span> <span class="c1"># from non-emailconfirmed users to start with)</span> <span class="c1"># Note for 1.13: emailconfirmed group and right were removed from default</span> <span class="c1"># setup, if you want to use it, you'll have to re-enable it manually</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_MAIN</span><span class="p">]</span> <span class="o">=</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_USER</span><span class="p">]</span> <span class="o">=</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_PROJECT</span><span class="p">]</span> <span class="o">=</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_IMAGE</span><span class="p">]</span> <span class="o">=</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_TEMPLATE</span><span class="p">]</span> <span class="o">=</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_HELP</span><span class="p">]</span> <span class="o">=</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_CATEGORY</span><span class="p">]</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span> <span class="s1">'emailconfirmed'</span> <span class="p">);</span> <span class="c1"># Only allow sysops to edit "Policy" namespace</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'sysop'</span><span class="p">][</span><span class="s1">'editpolicy'</span><span class="p">]</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> <span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_POLICY</span><span class="p">]</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span> <span class="s1">'editpolicy'</span> <span class="p">);</span> </pre> </div> <p>Note that in the last case it's assumed that a custom namespace exists and that <code>NS_POLICY</code> is a defined constant equal to the namespace number. See <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Using_custom_namespaces?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Using custom namespaces">Manual:Using custom namespaces</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Using_custom_namespaces?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Using custom namespaces"> </a></span> and <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Namespace_constants?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Namespace constants">Manual:Namespace constants</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Namespace_constants?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Namespace constants"> </a></span> for a list of MediaWiki's core namespaces.</p> <div class="mw-heading mw-heading3"> <h3 id="Restrict_editing_of_certain_specific_pages">Restrict editing of certain specific pages</h3> </div> <p>Use the <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Administrators?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Protection" title="Special:MyLanguage/Manual:Administrators">Protect</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Administrators?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Protection" title="Manual:Administrators"> </a></span> feature. By default, any sysop can protect pages so only other sysops can edit them. In 1.9 and higher, by default they can also protect pages so only "autoconfirmed" users (with accounts older than a configured period) can edit them. This does not require editing configuration files.</p> <p>If you want to restrict editing to groups with specific permissions, edit <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgRestrictionLevels?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgRestrictionLevels">$wgRestrictionLevels</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgRestrictionLevels?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgRestrictionLevels"> </a></span>. To prevent actions other than edit and move, use <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgRestrictionTypes?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgRestrictionTypes">$wgRestrictionTypes</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgRestrictionTypes?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgRestrictionTypes"> </a></span>.</p> <div class="mw-heading mw-heading3"> <h3 id="Restrict_editing_of_all_but_a_few_pages">Restrict editing of all but a few pages</h3> </div> <p>To impose a blanket restriction on editing for all pages, but allow a few (such as sandboxes, join request pages, etc.) to be more generously editable, you can use the <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:EditSubpages?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:EditSubpages">EditSubpages</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:EditSubpages?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:EditSubpages"> </a></span> extension. This may not fit too often, but you could also use the <a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_of_certain_specific_pages">Restrict editing of certain specific pages</a> method mentioned above, with all name spaces protected, and only a special one editable by everyone which has all the pages you want editable.</p> <div class="mw-heading mw-heading3"> <h3 id="Restrict_editing_for_certain_IP_address_ranges">Restrict editing for certain IP address ranges</h3> </div> <p>Schools and other institutions may want to block all edits not from a few specified <a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://en.wikipedia.org/wiki/IP_address" class="extiw" title="w:IP address">IP address</a> ranges. To do so, see <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Block_and_unblock?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Block and unblock">Manual:Block and unblock</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Block_and_unblock?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Block and unblock"> </a></span>. The only way to do this at present without modifying the code is to go to <a href="https://www-mediawiki-org.translate.goog/wiki/Special:Block?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:Block">Special:Blockip</a> and systematically <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Help:Range_blocks?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Help:Range blocks">rangeblock</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Help:Range_blocks?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Help:Range blocks"> </a></span> every one of the address ranges that you don't want to be able to edit. This will work for all future versions of MediaWiki. It will not work on a per-namespace basis.</p> <div class="mw-heading mw-heading3"> <h3 id="Restrict_editing_by_a_particular_user">Restrict editing by a particular user</h3> </div> <p>Use the user <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Block_and_unblock?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Block and unblock">blocking</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Block_and_unblock?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Block and unblock"> </a></span> functionality to deprive a user of all edit access. MediaWiki does not include a possibility to give rights to separate users directly; instead rights are always given to a user group. There is no way in the core software to change permissions of particular users in order to restrict or allow editing particular pages, except by changing their usergroup.</p> <div class="mw-heading mw-heading3"> <h3 id="Restrict_creating_of_all_pages">Restrict creating of all pages</h3> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"> <div role="note" class="note note-info"> Revoking the <i>edit</i> right already prevents affected users from creating new pages and talk pages. </div> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="c1"># Anonymous users can't create pages</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'createpage'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="c1"># Only users with accounts four days old or older can create pages</span> <span class="c1"># Requires MW 1.6 or higher.</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span> <span class="p">][</span><span class="s1">'createpage'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'user'</span> <span class="p">][</span><span class="s1">'createpage'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'autoconfirmed'</span><span class="p">][</span><span class="s1">'createpage'</span><span class="p">]</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> </pre> </div> <div class="mw-heading mw-heading3"> <h3 id="Restrict_creating_pages_in_certain_namespaces">Restrict creating pages in certain namespaces</h3> </div> <p>There are separate rights for creating talk pages (createtalk) and creating non-talk pages (createpage). If you need per-namespace control finer than that, it is not possible in core MediaWiki, and requires an extension such as <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:Lockdown?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:Lockdown">Extension:Lockdown</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:Lockdown?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:Lockdown"> </a></span>.</p> <div class="mw-heading mw-heading2"> <h2 id="Restrict_access_to_uploaded_files">Restrict access to uploaded files</h2> </div> <dl> <dd> <i>→ <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Image_authorization?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Image authorization">Manual:Image authorization</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Image_authorization?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Image authorization"> </a></span>, <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:img_auth.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:img auth.php">img_auth.php</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Img_auth.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Img auth.php"> </a></span>, <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#List_of_permissions" title="Special:MyLanguage/Manual:User rights">Manual:User rights (read)</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#List_of_permissions" title="Manual:User rights"> </a></span></i> </dd> </dl> <p>If you have enabled the ability to upload files, these will be served directly by the underlying web server. As a result, <b><span style="color:#d73333" dir="ltr">account-based access to the file is unrestricted by default</span></b>.</p> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"> <tbody> <tr> <td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x,https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20"></span></span></span> <b>Warning:</b></td> <td style="padding-left: 0.5em vertical-align: top;">Setting the <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#List_of_permissions" title="Special:MyLanguage/Manual:User rights">user right</a> <code>read</code> (allow viewing pages) to <code>false</code> will only protect <i>wiki (article, talk, ...) pages</i>, but <b><span style="color:#d73333" dir="ltr">uploaded <i>files</i> (images, files, docs... in the <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgUploadPath?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgUploadPath">$wgUploadPath</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgUploadPath?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgUploadPath"> </a></span> subdirectories) will always remain readable via direct access by default</span></b>.<br> Use the information from <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Image_authorization?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Image authorization">Manual:Image authorization</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Image_authorization?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Image authorization"> </a></span> and <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:img_auth.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:img auth.php">img_auth.php</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Img_auth.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Img auth.php"> </a></span> pages when you have the need to restrict image views and file download access to only logged-in users.</td> </tr> </tbody> </table> <div class="mw-heading mw-heading3"> <h3 id="Example_for_access_restriction_to_uploaded_files_in_the_server_configuration">Example for access restriction to uploaded files in the server configuration</h3> </div> <p>If sensitive files are uploaded to an internet-accessible wiki, you may wish to add restrictions on where these can be accessed from. On Apache, if your local network were 10.1.2.*, you could restrict serving files to local addresses with:</p> <pre> <Location /mediawiki/images> Order deny,allow Allow from 10.1.2.3 Deny from all </Location> </pre> <div class="mw-heading mw-heading2"> <h2 id="Restrict_viewing">Restrict viewing</h2> </div> <div class="mw-heading mw-heading3"> <h3 id="Restrict_viewing_of_all_pages">Restrict viewing of all pages</h3> </div> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"> <tbody> <tr> <td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x,https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20"></span></span></span> <b>Warning:</b></td> <td style="padding-left: 0.5em vertical-align: top;">If you want anonymous users to be unable to view the wiki markup/code, you should not allow them to edit any page (see <a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_editing_of_all_pages">#Restrict editing of all pages</a> above). If they can edit any page, they can use <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Help:Templates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Help:Templates">template inclusion</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Help:Templates?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Help:Templates"> </a></span> to view even pages they can't edit. This may be possible to avoid by using <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgNonincludableNamespaces?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgNonincludableNamespaces">$wgNonincludableNamespaces</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgNonincludableNamespaces?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgNonincludableNamespaces"> </a></span></td> </tr> </tbody> </table> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"> <tbody> <tr> <td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x,https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20"></span></span></span> <b>Warning:</b></td> <td style="padding-left: 0.5em vertical-align: top;">This method allows any visitor to view the wiki after creating an account. You may wish to combine it with <a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Restrict_account_creation">#Restrict account creation</a> above.</td> </tr> </tbody> </table> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"> <tbody> <tr> <td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x,https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20"></span></span></span> <b>Warning:</b></td> <td style="padding-left: 0.5em vertical-align: top;">Uploaded images will still be viewable to anyone who knows the image directory's name. Either point <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgUploadPath?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgUploadPath">$wgUploadPath</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgUploadPath?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgUploadPath"> </a></span> to the img_auth.php script and follow the instructions in <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Image_authorization?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Image authorization">Manual:Image authorization</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Image_authorization?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Image authorization"> </a></span>, or use some external method to protect images, like .htaccess.</td> </tr> </tbody> </table> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"> <tbody> <tr> <td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x,https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20"></span></span></span> <b>Warning:</b></td> <td style="padding-left: 0.5em vertical-align: top;">Wiki pages like <code>MediaWiki:Common.css</code> and <code>MediaWiki:Gadget-foo.css</code> may be part of a public ResourceLoader module, and thus can have their source code exposed through <a href="https://www-mediawiki-org.translate.goog/wiki/ResourceLoader?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="ResourceLoader">load.php</a>. Turn off <code><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgUseSiteJs?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgUseSiteJs">$wgUseSiteJs</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgUseSiteJs?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgUseSiteJs"> </a></span></code> and <code><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgUseSiteCss?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgUseSiteCss">$wgUseSiteCss</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgUseSiteCss?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgUseSiteCss"> </a></span></code> to disable this functionality.</td> </tr> </tbody> </table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"> <div role="note" class="note note-info"> If anonymous users can't view your page, neither can search engines. Your site will not be indexed on Google. </div> <p>Add this line to your <code>LocalSettings.php</code> file:</p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="c1"># Disable reading by anonymous users</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">'*'</span><span class="p">][</span><span class="s1">'read'</span><span class="p">]</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="c1"># But allow them to read e.g., these pages:</span> <span class="nv">$wgWhitelistRead</span> <span class="o">=</span> <span class="p">[</span> <span class="s2">"Main Page"</span><span class="p">,</span> <span class="s2">"Help:Contents"</span> <span class="p">];</span> </pre> </div> <p>The <code><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgWhitelistRead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgWhitelistRead">$wgWhitelistRead</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgWhitelistRead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgWhitelistRead"> </a></span></code> setting allows users to view the main page. If page names have more than one word, use a space " " between them, not an underscore "_".</p> <p>In addition to the main page of such a private site, you could give access to the Recentchanges page (if you think that its content isn't private) for feed readers by adding Special:Recentchanges to <code><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgWhitelistRead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgWhitelistRead">$wgWhitelistRead</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgWhitelistRead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgWhitelistRead"> </a></span></code>.</p> <p>If you need to protect even the sidebar, main page, or login screen for any reason, it's recommended that you use higher-level authentication such as .htpasswd or equivalent.</p> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"> <tbody> <tr> <td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x,https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20"></span></span></span> <b>Warning:</b></td> <td style="padding-left: 0.5em vertical-align: top;">MediaWiki from 1.32 to 1.35.4, 1.36.2, 1.37.0 contain a security issue that allow unprivileged editing of arbitrary page and arbitrary JavaScript execution. If you are using one of these versions and can not upgrade to a newer version, please see <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/2021-12_security_release/FAQ?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/2021-12 security release/FAQ">2021-12 security release/FAQ</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/2021-12_security_release/FAQ?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="2021-12 security release/FAQ"> </a></span> for a workaround.</td> </tr> </tbody> </table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"> <div role="note" class="note note-info"> Although <a href="https://www-mediawiki-org.translate.goog/wiki/Special:ListUsers?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:ListUsers">Special:Listusers</a> won't be available, it can be determined if a username is correct from Userlogin errors. You may want to give a common text for <a href="https://www-mediawiki-org.translate.goog/wiki/MediaWiki:Wrongpassword?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="MediaWiki:Wrongpassword">MediaWiki:wrongpassword</a> and <a href="https://www-mediawiki-org.translate.goog/wiki/MediaWiki:Nosuchusershort?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="MediaWiki:Nosuchusershort">MediaWiki:nosuchusershort</a>. </div> <div class="mw-heading mw-heading3"> <h3 id="Restrict_viewing_of_certain_specific_pages">Restrict viewing of certain specific pages</h3> </div> <style data-mw-deduplicate="TemplateStyles:r6824882">.mw-parser-output table.ambox{margin:0 10%;width:unset;border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output table.ambox+table.ambox,.mw-parser-output table.ambox+link+table.ambox,.mw-parser-output table.ambox+style+table.ambox{margin-top:-1px}.mw-parser-output .ambox td.mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox th.mbox-text,.mw-parser-output .ambox td.mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox td.mbox-image{padding:2px 0 2px 0.5em}.mw-parser-output .ambox td.mbox-imageright{padding:2px 0.5em 2px 0}.mw-parser-output table.ambox-notice{border-left-color:#36c}.mw-parser-output table.ambox-speedy{background-color:var(--background-color-error-subtle,#fee7e6)}.mw-parser-output table.ambox-delete,.mw-parser-output table.ambox-speedy{border-left-color:var(--background-color-error--active,#b32424)}.mw-parser-output table.ambox-content{border-left-color:#f28500}.mw-parser-output table.ambox-style{border-left-color:#fc3}.mw-parser-output table.ambox-move{border-left-color:#9932cc}.mw-parser-output table.ambox-protection{border-left-color:#a2a9b1}html body.mediawiki .mw-parser-output .ambox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;box-sizing:border-box;width:238px;font-size:88%;line-height:1.25em}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;box-sizing:border-box;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}</style> <table class="ambox-notice box-Notice ambox plainlinks metadata" role="presentation"> <tbody> <tr> <td class="mbox-image"> <div style="width:52px"> <span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/40px-OOjs_UI_icon_information-progressive.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/60px-OOjs_UI_icon_information-progressive.svg.png 1.5x,https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/80px-OOjs_UI_icon_information-progressive.svg.png 2x" data-file-width="20" data-file-height="20"></span></span> </div></td> <td class="mbox-text"> <div class="mbox-text-span"> <b>If you need per-page or partial page access restrictions, you are advised to install an appropriate content management package. MediaWiki was not written to provide per-page access restrictions, and almost all hacks or patches promising to add them will likely have flaws somewhere, which could lead to exposure of confidential data. We are not responsible for anything being leaked.</b> <br> For further details, see <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Security_issues_with_authorization_extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Security issues with authorization extensions">Security issues with authorisation extensions</a> </div></td> </tr> </tbody> </table> <p>To prevent anyone but sysops from viewing a page, it can simply be <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Help:Deletion_and_undeletion?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Help:Deletion and undeletion">deleted</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Help:Deletion_and_undeletion?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Help:Deletion and undeletion"> </a></span>. To prevent even sysops from viewing it, it can be removed more permanently using <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:RevisionDelete?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:RevisionDelete">Manual:RevisionDelete</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:RevisionDelete?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:RevisionDelete"> </a></span>. To completely destroy the text of the page, it can be manually removed from the database. In any case, the page cannot be edited while in this state, and for most purposes no longer exists.</p> <p>To have a page act normally for some users but be invisible to others, as is possible for instance in most forum software, is a very different matter. MediaWiki is designed for two basic access modes:</p> <ol> <li>Everyone can view every single page on the wiki (with the possible exception of a few special pages). This is the mode used by Wikipedia and its sister projects.</li> <li>Anonymous users can only view the Main Page and login page, and cannot edit any page. This is basically the same as the above, in terms of technical implementation (just an extra check for every page view), which is why it exists. This is the mode of operation used by certain private wikis such as those used by various Wikimedia committees.</li> </ol> <p><b>If you intend to have different view permissions than that, MediaWiki is not designed for your usage.</b> (See <a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://phabricator.wikimedia.org/T3924" class="extiw" title="phab:T3924">T3924</a>.) Data is not necessarily clearly delineated by namespace, page name, or other criteria, and there are a lot of leaks you'll have to plug if you want to make it so (see <i><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/security_issues_with_authorization_extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/security issues with authorization extensions">Security issues with authorization extensions</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Security_issues_with_authorization_extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Security issues with authorization extensions"> </a></span></i> for a sample). Other wiki software may be more suitable for your purpose. You have been warned. If you must use MediaWiki, there are three basic possibilities:</p> <ol> <li>Set your wiki up private and whitelist specific pages that will be public with <code><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgWhitelistRead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgWhitelistRead">$wgWhitelistRead</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgWhitelistRead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgWhitelistRead"> </a></span></code> in the LocalSetting.php file. See the section above.</li> <li>Set up separate wikis with a <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgSharedDB?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgSharedDB">shared user database</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgSharedDB?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgSharedDB"> </a></span>, configure one as viewable and one as unviewable (<a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Disable_anonymous_reading">see above</a>), and <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Help:Interwiki_linking?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Help:Interwiki linking">make interwiki links</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Help:Interwiki_linking?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Help:Interwiki linking"> </a></span> between them.</li> <li>Install a third-party hack or extension. You will have to reapply it every time you upgrade the software, and it may not be updated immediately when new security fixes or upgrades of MediaWiki are released. Third-party hacks are, of course, not supported by MediaWiki developers, and if you're having problems you shouldn't ask on MediaWiki-l, #mediawiki, or other official support channels. A number of hacks are listed in <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Category:Page_specific_user_rights_extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Category:Page specific user rights extensions">Category:Page specific user rights extensions</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Category:Page_specific_user_rights_extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Category:Page specific user rights extensions"> </a></span>. Read about <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/security_issues_with_authorization_extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/security issues with authorization extensions">Security issues with authorization extensions</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Security_issues_with_authorization_extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Security issues with authorization extensions"> </a></span> if you plan to use one of those.</li> </ol> <div class="mw-heading mw-heading2"> <h2 id="Restricting_exporting">Restricting exporting</h2> </div> <p><i>See also: <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Parameters_to_Special:Export?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Parameters to Special:Export">Manual:Parameters to Special:Export</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Parameters_to_Special:Export?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Parameters to Special:Export"> </a></span></i></p> <p>It is not possible to export the contents of a page that cannot be read since <span class="plainlinks"><a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://static-codereview.wikimedia.org/MediaWiki/19935.html">r19935</a></span>.</p> <div class="mw-heading mw-heading2"> <h2 id="Removing_the_Login_link_from_all_pages">Removing the Login link from all pages</h2> </div> <p>One can remove the login/create account link from the upper right corner of all pages, as users can still go to <a href="https://www-mediawiki-org.translate.goog/wiki/Special:SpecialPages?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:SpecialPages">Special:SpecialPages</a> > <a href="https://www-mediawiki-org.translate.goog/wiki/Special:UserLogin?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:UserLogin">Special:UserLogin</a> to login. In LocalSettings.php use (tested with MediaWiki 1.16)</p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"> <pre><span></span><span class="k">function</span> <span class="nf">NoLoginLinkOnMainPage</span><span class="p">(</span> <span class="o">&</span><span class="nv">$personal_urls</span> <span class="p">){</span> <span class="nb">unset</span><span class="p">(</span> <span class="nv">$personal_urls</span><span class="p">[</span><span class="s1">'login'</span><span class="p">]</span> <span class="p">);</span> <span class="nb">unset</span><span class="p">(</span> <span class="nv">$personal_urls</span><span class="p">[</span><span class="s1">'anonlogin'</span><span class="p">]</span> <span class="p">);</span> <span class="k">return</span> <span class="k">true</span><span class="p">;</span> <span class="p">}</span> <span class="nv">$wgHooks</span><span class="p">[</span><span class="s1">'PersonalUrls'</span><span class="p">][]</span><span class="o">=</span><span class="s1">'NoLoginLinkOnMainPage'</span><span class="p">;</span> </pre> </div> <div class="mw-heading mw-heading2"> <h2 id="Removing_accounts">Removing accounts</h2> </div> <p>If you want to completely remove access to a user, e.g. on a <a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Simple_private_wiki">simple private wiki</a>, it's not possible to simply delete the account (<a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:removeUnusedAccounts.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:removeUnusedAccounts.php">unless no edits have been made</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:RemoveUnusedAccounts.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:RemoveUnusedAccounts.php"> </a></span>); you can <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Block_and_unblock?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:Block and unblock">block</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Block_and_unblock?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:Block and unblock"> </a></span> it, but the user will still <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:Block_and_unblock?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Effects_of_being_blocked" title="Special:MyLanguage/Manual:Block and unblock">be able</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Block_and_unblock?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#Effects_of_being_blocked" title="Manual:Block and unblock"> </a></span> to read pages. However, using <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:User_Merge_and_Delete?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:User Merge and Delete">User Merge and Delete</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:User_Merge_and_Delete?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Extension:User Merge and Delete"> </a></span> extension you can merge the account in another one and delete the former; the original account will then "disappear". If you want to preserve history readability (i.e., to have edits from the user to be still shown under their name), you can create a new account e.g. with username "OriginalUserName (deactivated)" and then merge "OriginalUserName" into the former, or even use <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:Renameuser?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:Renameuser">Renameuser</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:Renameuser?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="mw-redirect" title="Extension:Renameuser"> </a></span> extension to rename "OriginalUserName" into "AnotherUserName", then create an account under "OriginalUserName" and merge "AnotherUserName" into it: in this manner, "OriginalUserName" will be completely "usurped" (if you've set a non-null password).</p> <p>Since MediaWiki 1.16.0, it is possible to set <a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgBlockDisablesLogin?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgBlockDisablesLogin">$wgBlockDisablesLogin</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgBlockDisablesLogin?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgBlockDisablesLogin"> </a></span> to true to prevent access and reading to blocked users.</p> <div class="mw-heading mw-heading2"> <h2 id="Other_restrictions">Other restrictions</h2> </div> <p>You may want to have pages editable only by their creator, or ban viewing of history, or any of a number of other things. None of these features are available in an unhacked version of MediaWiki. If you need more fine-grained permissions, see the <a href="https://www-mediawiki-org.translate.goog/wiki/Manual:Preventing_access?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB#See_also">#See also</a> section for links to other wiki packages that are designed for this, as well as hacks that attempt to contort MediaWiki into something it's not designed to be but may work anyway.</p> <div class="mw-heading mw-heading2"> <h2 id="See_also">See also</h2> </div> <p>There are some related manual/help pages that may be of interest:</p> <ul> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:LocalSettings.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:LocalSettings.php">Manual:LocalSettings.php</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:LocalSettings.php?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:LocalSettings.php"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgGroupPermissions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgGroupPermissions">Manual:$wgGroupPermissions</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgGroupPermissions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgGroupPermissions"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgRestrictionTypes?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgRestrictionTypes">Manual:$wgRestrictionTypes</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgRestrictionTypes?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgRestrictionTypes"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgRestrictionLevels?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgRestrictionLevels">Manual:$wgRestrictionLevels</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgRestrictionLevels?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgRestrictionLevels"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgNamespaceProtection?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgNamespaceProtection">Manual:$wgNamespaceProtection</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgNamespaceProtection?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgNamespaceProtection"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgEmailConfirmToEdit?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgEmailConfirmToEdit">Manual:$wgEmailConfirmToEdit</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgEmailConfirmToEdit?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgEmailConfirmToEdit"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:$wgNonincludableNamespaces?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:$wgNonincludableNamespaces">Manual:$wgNonincludableNamespaces</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:$wgNonincludableNamespaces?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:$wgNonincludableNamespaces"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Manual:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Manual:User rights">Manual:User rights</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Manual:User_rights?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Manual:User rights"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Help:User_rights_and_groups?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Help:User rights and groups">Help:User rights and groups</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Help:User_rights_and_groups?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Help:User rights and groups"> </a></span></li> </ul> <p><b>Other wiki software</b> may have better support for fine-grained access control than MediaWiki:</p> <ul> <li><a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=http://moinmo.in/HelpOnAccessControlLists">MoinMoin</a></li> <li><a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=http://twiki.org/">TWiki</a></li> <li><a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=http://tikiwiki.org/">TikiWiki</a> - has fully configuable access control to features and permission levels.</li> </ul> <p>If you want better access control but want to use MediaWiki, this is a list of <b>extensions</b> and hacks to allow restrictions not possible in the software proper. These hacks may be out-of-date (check the version they're for). Please don't ask in official MediaWiki support channels if something goes wrong with a third-party hack.</p> <ul> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:FlaggedRevs?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:FlaggedRevs">Extension:Flagged Revisions</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:FlaggedRevs?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:FlaggedRevs"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:Moderation?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:Moderation">Extension:Moderation</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:Moderation?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:Moderation"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:Approved_Revs?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:Approved Revs">Extension:Approved Revs</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:Approved_Revs?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:Approved Revs"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:Lockdown?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:Lockdown">Extension:Lockdown</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:Lockdown?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:Lockdown"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:AuthorProtect?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:AuthorProtect">Extension:AuthorProtect</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:AuthorProtect?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:AuthorProtect"> </a></span></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:EditSubpages?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:EditSubpages">Extension:EditSubpages</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:EditSubpages?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:EditSubpages"> </a></span> - restricts anonymous users from editing most pages</li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Extension:NSFileRepo?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:MyLanguage/Extension:NSFileRepo">Extension:NSFileRepo</a><span style="display:none"><a href="https://www-mediawiki-org.translate.goog/wiki/Extension:NSFileRepo?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Extension:NSFileRepo"> </a></span></li> </ul><!-- NewPP limit report Parsed by mw‐web.codfw.main‐78fc6dc798‐qgvnb Cached time: 20241121071428 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.644 seconds Real time usage: 0.889 seconds Preprocessor visited node count: 6010/1000000 Post‐expand include size: 61089/2097152 bytes Template argument size: 31697/2097152 bytes Highest expansion depth: 17/100 Expensive parser function count: 93/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 26111/5000000 bytes Lua time usage: 0.165/10.000 seconds Lua memory usage: 1732714/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 568.058 1 -total 72.01% 409.074 68 Template:Ll 25.56% 145.207 136 Template:Translatable 24.83% 141.051 77 Template:Pagelang 14.84% 84.299 34 Template:TNTN 11.24% 63.834 7 Template:Warning 7.01% 39.834 1 Template:Page_security_extension_disclaimer 6.21% 35.253 1 Template:MW_1.10 6.11% 34.689 1 Template:Notice 5.69% 32.295 1 Template:Ambox --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:13681-0!canonical and timestamp 20241121071428 and revision id 6695813. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --> <noscript> <img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"> </noscript> <div class="printfooter" data-nosnippet=""> Retrieved from "<a dir="ltr" href="https://www-mediawiki-org.translate.goog/w/index.php?title=Manual:Preventing_access&oldid=6695813&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">https://www.mediawiki.org/w/index.php?title=Manual:Preventing_access&oldid=6695813</a>" </div> </div> <div id="catlinks" class="catlinks" data-mw="interface"> <div id="mw-normal-catlinks" class="mw-normal-catlinks"> <a href="https://www-mediawiki-org.translate.goog/wiki/Special:Categories?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Special:Categories">Categories</a>: <ul> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Category:Page_specific_user_rights_extensions?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Category:Page specific user rights extensions">Page specific user rights extensions</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Category:MediaWiki_configuration?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Category:MediaWiki configuration">MediaWiki configuration</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Category:Configure?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Category:Configure">Configure</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Category:Permission?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Category:Permission">Permission</a></li> <li><a href="https://www-mediawiki-org.translate.goog/wiki/Category:Namespace?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" title="Category:Namespace">Namespace</a></li> </ul> </div> </div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer"> <ul id="footer-info"> <li id="footer-info-lastmod">This page was last edited on 13 August 2024, at 01:08.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. Text in <a class="external text" href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Help:Contents?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">the Help: namespace</a> is available under the <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>. By using this site, you agree to the <a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="https://www-mediawiki-org.translate.goog/wiki/Project:About?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="https://www-mediawiki-org.translate.goog/wiki/Project:General_disclaimer?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://www-mediawiki-org.translate.goog/wiki/Special:MyLanguage/Code_of_Conduct?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://stats.wikimedia.org/%23/www.mediawiki.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://m.mediawiki.org/w/index.php?title%3DManual:Preventing_access%26mobileaction%3Dtoggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www-mediawiki-org.translate.goog/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-8745688f8-z2rss","wgBackendResponseTime":117,"wgPageParseReport":{"limitreport":{"cputime":"0.644","walltime":"0.889","ppvisitednodes":{"value":6010,"limit":1000000},"postexpandincludesize":{"value":61089,"limit":2097152},"templateargumentsize":{"value":31697,"limit":2097152},"expansiondepth":{"value":17,"limit":100},"expensivefunctioncount":{"value":93,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":26111,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 568.058 1 -total"," 72.01% 409.074 68 Template:Ll"," 25.56% 145.207 136 Template:Translatable"," 24.83% 141.051 77 Template:Pagelang"," 14.84% 84.299 34 Template:TNTN"," 11.24% 63.834 7 Template:Warning"," 7.01% 39.834 1 Template:Page_security_extension_disclaimer"," 6.21% 35.253 1 Template:MW_1.10"," 6.11% 34.689 1 Template:Notice"," 5.69% 32.295 1 Template:Ambox"]},"scribunto":{"limitreport-timeusage":{"value":"0.165","limit":"10.000"},"limitreport-memusage":{"value":1732714,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-78fc6dc798-qgvnb","timestamp":"20241121071428","ttl":2592000,"transientcontent":false}}});});</script> <script>function gtElInit() {var lib = new google.translate.TranslateService();lib.translatePage('en', 'en', function () {});}</script> <script src="https://translate.google.com/translate_a/element.js?cb=gtElInit&hl=en-GB&client=wt" type="text/javascript"></script> </body> </html>