Preventing spam on MediaWiki: Difference between revisions

From ULYSSIS documentation
(Created page with "==google's recaptcha== ===What is recaptcha and how/will it help prevent spam ?=== For answers to those questions you can look at google's page about recaptcha(https://google....")
 
Line 3: Line 3:
For answers to those questions you can look at google's page about recaptcha(https://google.com/recaptcha)
For answers to those questions you can look at google's page about recaptcha(https://google.com/recaptcha)


===Instalation===
===Installation===
This instalation guide requires mediawiki '''1.26''' or higher
This installation guide requires mediawiki '''1.26''' or higher


* Go to google's recaptcha administrator page(https://www.google.com/recaptcha/admin) and register your site
* Go to google's recaptcha administrator page(https://www.google.com/recaptcha/admin) and register your site
Line 20: Line 20:
$wgReCaptchaSecretKey = ' '''your private key here''' ';
$wgReCaptchaSecretKey = ' '''your private key here''' ';
</code>
</code>
  exmaple of public and private key (https://i.imgur.com/vGJKEXx.png)
  example of public and private key (https://i.imgur.com/vGJKEXx.png)


* mediawiki wil start loading recaptcha in the background and once done wil start using recaptcha for defending you from bots
* mediawiki wil start loading recaptcha in the background and once done wil start using recaptcha for defending you from bots

Revision as of 23:37, 7 February 2016

google's recaptcha

What is recaptcha and how/will it help prevent spam ?

For answers to those questions you can look at google's page about recaptcha(https://google.com/recaptcha)

Installation

This installation guide requires mediawiki 1.26 or higher

  • Open your *LocalSettings.php* file which is in your mediawiki instalation folder
    • put the following piece of text in the above mentioned file

require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";

wfLoadExtension( 'ConfirmEdit/ReCaptchaNoCaptcha' ); $wgCaptchaClass = 'ReCaptchaNoCaptcha'; $wgReCaptchaSiteKey = ' your public/site key here '; $wgReCaptchaSecretKey = ' your private key here ';

example of public and private key (https://i.imgur.com/vGJKEXx.png)
  • mediawiki wil start loading recaptcha in the background and once done wil start using recaptcha for defending you from bots