Difference between revisions of "Jmol:Administrators"

From Jmol
Jump to navigation Jump to search
(Fighting against vandalism)
 
(Update)
Line 4: Line 4:
 
== Fighting against vandalism and spamming ==
 
== Fighting against vandalism and spamming ==
  
Several configuration options have been activated on Jmol wiki to reduce the number of vandalism.
+
Several configuration options have been activated on Jmol wiki to reduce the number of vandalisms.
 
These options include:
 
These options include:
* Anonymous users can't edit pages (<tt>[[:mw:Manual:$wgGroupPermissions|$wgGroupPermissions]]<nowiki>['*']['edit'] = false;</nowiki></tt>).
+
* Anonymous users can't edit pages.
* Email address is required for account registration an this email address must be confirmed before the user can edit pages (<tt>[[:mw:Manual:$wgEmailConfirmToEdit|$wgEmailConfirmToEdit]] = true;</tt>).
+
*: <source lang="php">$wgGroupPermissions['*']['edit'] = false;</source>
 +
* Email address is required for account registration and this email address must be confirmed before the user can edit pages
 +
*: <source lang="php">$wgEmailConfirmToEdit = true;</source>
 +
* Users can only upload files if they are registered for at least 4 days.
 +
*: <source lang="php">$wgGroupPermissions['*']['upload'] = false;</source>
 +
*: <source lang="php">$wgAutoConfirmAge = 3600 * 24 * 4;</source>
 +
*: <source lang="php">$wgGroupPermissions['autoconfirmed']['upload'] = true;</source>
 
* Extension [[:mw:Extension:SpamBlacklist|SpamBlacklist]] to manage a black list of URL.
 
* Extension [[:mw:Extension:SpamBlacklist|SpamBlacklist]] to manage a black list of URL.
 +
*: <source lang="php">require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );</source>
 +
*: <source lang="php">$wgSpamBlacklistFiles = array(</source>
 +
*: <source lang="php">  "http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1",</source>
 +
*: <source lang="php">  "http://en.wikipedia.org/w/index.php?title=MediaWiki:Spam-blacklist&action=raw&sb_ver=1",</source>
 +
*: <source lang="php">  "http://blacklist.chongqed.org/mediawiki/",</source>
 +
*: <source lang="php">  "DB: wikijmolorg JmolWiki_Blacklist"</source>
 +
*: <source lang="php">  );</source>
 
* Extension [[:mw:Extension:ConfirmEdit|ConfirmEdit]] to add a security feature, known as a Captcha, to prevent bot access in some situations (user registration, second login attempt, and URL added).
 
* Extension [[:mw:Extension:ConfirmEdit|ConfirmEdit]] to add a security feature, known as a Captcha, to prevent bot access in some situations (user registration, second login attempt, and URL added).
 +
*: <source lang="php">require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );</source>
 +
*: <source lang="php">require_once( "$IP/extensions/ConfirmEdit/ReCaptcha.php" );</source>
 +
*: <source lang="php">$wgCaptchaClass = 'ReCaptcha';</source>
 +
*: <source lang="php">$wgReCaptchaPublicKey = 'xxx';</source>
 +
*: <source lang="php">$wgReCaptchaPrivateKey = 'xxx';</source>
 
* [[:mw:Manual:RevisionDelete|RevisionDelete]] has been activated.
 
* [[:mw:Manual:RevisionDelete|RevisionDelete]] has been activated.
 +
*: <source lang="php">$wgGroupPermissions['sysop']['deleterevision'] = true;</source>
 +
*: <source lang="php">$wgGroupPermissions['sysop']['hideuser'] = true;</source>
  
  

Revision as of 22:02, 6 March 2011

This page contains information about Jmol wiki administration. It lists some actions administrators should take in various situations.

Fighting against vandalism and spamming

Several configuration options have been activated on Jmol wiki to reduce the number of vandalisms. These options include:

  • Anonymous users can't edit pages.
    <source lang="php">$wgGroupPermissions['*']['edit'] = false;</source>
  • Email address is required for account registration and this email address must be confirmed before the user can edit pages
    <source lang="php">$wgEmailConfirmToEdit = true;</source>
  • Users can only upload files if they are registered for at least 4 days.
    <source lang="php">$wgGroupPermissions['*']['upload'] = false;</source>
    <source lang="php">$wgAutoConfirmAge = 3600 * 24 * 4;</source>
    <source lang="php">$wgGroupPermissions['autoconfirmed']['upload'] = true;</source>
  • Extension SpamBlacklist to manage a black list of URL.
    <source lang="php">require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );</source>
    <source lang="php">$wgSpamBlacklistFiles = array(</source>
    <source lang="php"> "http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1",</source>
    <source lang="php"> "http://en.wikipedia.org/w/index.php?title=MediaWiki:Spam-blacklist&action=raw&sb_ver=1",</source>
    <source lang="php"> "http://blacklist.chongqed.org/mediawiki/",</source>
    <source lang="php"> "DB: wikijmolorg JmolWiki_Blacklist"</source>
    <source lang="php"> );</source>
  • Extension ConfirmEdit to add a security feature, known as a Captcha, to prevent bot access in some situations (user registration, second login attempt, and URL added).
    <source lang="php">require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );</source>
    <source lang="php">require_once( "$IP/extensions/ConfirmEdit/ReCaptcha.php" );</source>
    <source lang="php">$wgCaptchaClass = 'ReCaptcha';</source>
    <source lang="php">$wgReCaptchaPublicKey = 'xxx';</source>
    <source lang="php">$wgReCaptchaPrivateKey = 'xxx';</source>
  • RevisionDelete has been activated.
    <source lang="php">$wgGroupPermissions['sysop']['deleterevision'] = true;</source>
    <source lang="php">$wgGroupPermissions['sysop']['hideuser'] = true;</source>


Unfortunately, even with these options, vandalism can still happen. Administrators actions in this situation can be the following:

  • Block user with an infinite expiry.
  • Eventually, Merge user with Anonymous account (and delete the old user).
  • If the vandalism is about spamming links to external sites, update the JmolWiki Blacklist by adding the domain of the spam URL.
    The dot character '.' must be escaped with backslash '\' before.
  • If the vandal has created a new page or uploaded a new file, delete the page or the file.
  • If the vandal has modified an existing page, revert its modification and delete the revision using the Show/hide selected revisions button in the history of the page.

Contributors

NicolasVervelle