Manual talk:$wgWhitelistRead

What does the parameter "-" mean? edit

Does somebody know what page the parameter "-" refers to? See code below:

$wgWhitelistRead = array( "Special:Userlogin", "-", "MediaWiki:Monobook.css" );

--Candidia 21:25, 9 February 2008 (UTC)Reply

Hi I just asked in the IRC and got the following response from user nekudayims: used to be a special page that loaded user CSS/JS customizations and such. Thus this is superseded starting with 1.17.+ Cheers --[[kgh]] 19:50, 12 August 2011 (UTC)Reply

non ascii characters edit

Hi,

How do you manage to get somes pages in $wgWhitelistRead with non ascii characters, like é, à etc. When setting up a MW1.8.2, adding "Actualités" to $wgWhitelistRead does not work, as well as Actualit%C3%A9s or Actualites.

Thank you for your help Florent

"Actualités" should work (the others don't) - but you have to make sure you save the LocalSettings.php file as UTF-8, not in Latin-1 or whatever is the default on your system. Note that when saving as UTF-8, some editors may insert invisible characters, as so called BOM, at the start of the file - which will confuse PHP and lead to "headers already sent" warnings. -- Duesentrieb 11:20, 21 February 2007 (UTC)Reply

add help namespace edit

How can I add the whole help-namespace to the whitelist? I want anonymous users to be able to see the startpage, the loggin page and the articles in the help namespace.

Look at WhitelistedNamespaces, an extension that allows you to do just that. --Lhridley 07:07, 14 February 2010 (UTC)Reply
In current versions that is possible without any extension - use $wgWhitelistReadRegexp for this! --87.123.55.67 20:13, 21 April 2016 (UTC)Reply

other language setting edit

If you have change the default language in wgLanguageCode = "XX"; from en to an other language you must take change the name of the site for userlogin.

In english special:UserLogin

In german spezial:UserLogin

I hope, it will help

$wgWhitelistRead isn't working with $wgShowIPinHeader edit

I am deploying my first wiki and discovered that whitelisting wasn't working for me. As it turns out, if you have "$wgShowIPInHeader" set to false, the whitelist does not function. Removing that line fixes it. — Preceding unsigned comment added by [[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]] • [[Special:Contributions/{{{1}}}|contribs]])

$wgShowIPinHeader has finally been removed in MediaWiki 1.27; this kind of solves this issue. --87.123.55.67 21:22, 21 April 2016 (UTC)Reply

Read only? edit

Is there a way to whitelist a page for editing as well as reading? Say, if I have a wiki that permits editing by only logged in users, but I want certain pages to be editable by anyone regardless of whether or not they are a registered user? Fordmadoxfraud 23:28, 9 January 2011 (UTC)Reply

Indirectly maybe: There is $wgNamespaceProtection, which allows to protect a complete namespace. If you then allow certain pages to be unprotected, this might give the desired result. --87.123.55.67 20:06, 21 April 2016 (UTC)Reply

Whitelisting Page and Subpages edit

Is there a way for subpages of a whitelisted page to automatically assume the whitelisted status of their parent page?

I have an access controlled wiki and would like to make certain pages visible/accessible without an account/login and being able to bin them beneath a single whitelisted page would be a boon.

See $wgWhitelistReadRegexp! --87.123.55.67 20:11, 21 April 2016 (UTC)Reply

Allow anonymus user to use the search edit

My settings are as follows…

$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgWhitelistRead = array(

… while anonymus readers can see the whitelistet pages properly, they CANNOT USE THE SEARCH, which is kind of an odd experience for the user of a wiki.

How can I permit anonymus users to use the search? — Preceding unsigned comment added by [[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]] • [[Special:Contributions/{{{1}}}|contribs]])

Just add the search page to $wgWhitelistRead! --87.123.55.67 20:05, 21 April 2016 (UTC)Reply

Create account edit

i have these settings

$wgGroupPermissions['*']['read'] = false;

$wgWhitelistRead = array ("Main Page", "MediaWiki:Common.css", "MediaWiki:Common.js", "Special:CreateAccount");

but the anonymous user has to login to view the Special:CreateAccount page and that defeats the purpose.

Create account for anonymous edit

Hello,

I have exactly the same problem as above, do you have the solution?

for information a part of my configuration :

$wgLanguageCode = "fr";

$wgGroupPermissions['*']['read'] = false;

Access to the login page works: index.php?title=Spécial:Connexion

But access to the account creation page does not work, you have to be authenticated: index.php?title=Spécial:Créer_un_compte

Solution or error found for "Create account for anonymous" edit

Solution that worked for my set-up, but using the line $wgWhitelistReadRegexp : remove the underscores and use spaces in your whitelist array.

$wgWhitelistReadRegexp = [
   '/Main Page/',
   '/Accueil/',
   '/Spécial:Créer un compte/',
   '/Spécial:Préférences/',
   '/Spécial:Confirmer l\'adresse de contact/'
   ];

nb: the above in only a sample. You will want to whitelist many other pages.

ps: I cannot get the following to work though: Special:ConfirmEmail/[need a wildcard here for the token]. See WhiteListReadRegexp Discussion

--Michaël Lessard (talk) 20:17, 13 February 2020 (UTC)Reply

Special page with parameter in sub-page notation. edit

This doesn't seem to work with special pages that have parameters passed to them in sub-page notation.

So, I'd like to have the outcome of Special:Filepath/logo.svg visible.

I use this as the value for $wgLogo, as in $wgLogo = "/Special:Filepath/logo.svg"; in order to give users the ability to change the wiki's logo by just uploading a file, and without having to edit configuration files.

Any insights? Ahmad Gharbeia أحمد غربية (talk) 18:19, 2 March 2022 (UTC)Reply

Return to "$wgWhitelistRead" page.