Difference between revisions of "About this wiki"

From Tech
Jump to navigationJump to search
(Created page with "* Acces: [http://www.mediawiki.org/wiki/Manual:Preventing_access]")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
This is my personal wiki.
  +
  +
* [[Mediawiki backup]]
  +
  +
I blocked access to prevent spammers from polluting this.
  +
 
* Acces: [http://www.mediawiki.org/wiki/Manual:Preventing_access]
 
* Acces: [http://www.mediawiki.org/wiki/Manual:Preventing_access]
  +
<nowiki># Disable reading by anonymous users
  +
$wgGroupPermissions['*']['read'] = false;
  +
  +
# But allow them to access the login page or else there will be no way to log in!
  +
# NOTE: You also need to provide access here to the .css and .js files that the
  +
# allowed pages attempt to load; otherwise, users will get errors on the page
  +
# when they attempt to load it (Internet Explorer will complain about the errors;
  +
# Firefox will show them in its error console)
  +
# [You also might want to add access to "Main Page", "Wikipedia:Help", etc.)
  +
$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css",
  +
"MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-");
  +
  +
# Disable anonymous editing
  +
$wgGroupPermissions['*']['edit'] = false;
  +
  +
# Prevent new user registrations except by sysops
  +
$wgGroupPermissions['*']['createaccount'] = false;
  +
</nowiki>

Latest revision as of 15:39, 1 September 2021

This is my personal wiki.

I blocked access to prevent spammers from polluting this.

# Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
 
# But allow them to access the login page or else there will be no way to log in!
# NOTE: You also need to provide access here to the .css and .js files that the
# allowed pages attempt to load; otherwise, users will get errors on the page
# when they attempt to load it (Internet Explorer will complain about the errors;
# Firefox will show them in its error console)
# [You also might want to add access to "Main Page", "Wikipedia:Help", etc.)
$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", 
"MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-");
 
# Disable anonymous editing
$wgGroupPermissions['*']['edit'] = false;
 
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;