Preventing spam on MediaWiki: Difference between revisions

No edit summary
Line 1: Line 1:
==Google's recaptcha==
==Google's recaptcha==
===What is recaptcha and how/will it help prevent spam ?===
===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)
For answers to those questions you can look at google's page about recaptcha( https://google.com/recaptcha)


===Installation===
===Installation===
Line 7: Line 7:


* 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
* Open your *LocalSettings.php* file which is in your mediawiki instalation folder
* Open your *LocalSettings.php* file which is in your mediawiki instalation folder
* Put the following piece of text in the above mentioned file
** Put the following piece of text in the above mentioned file
<code>
<code>

Revision as of 01:35, 28 December 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

  • Go to google's recaptcha administrator page(https://www.google.com/recaptcha/admin) and register your site
  • 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