Extension:SpamBlacklist/API

From MediaWiki.org
Jump to navigation Jump to search

You can use the API (action=spamblacklist) to check a url's status against the SpamBlacklist.

Parameters[edit]

  • url: A pipe-separated list of URLs to check against


Example[edit]

Check "http://example.net" against the blacklist

Returned fields[edit]

  • result: "ok" if not blacklisted, "blacklisted" if blacklisted.
  • matches: If blacklisted, a collection of the strings that matched a regular expression