Extension talk:Whitelist Pages

About this board

Whitelisting Semantic Mediawiki (SMW) Results

Revansx (talkcontribs)

Does this extension whitelist the wiki article wikitext or the fully processed page (including any semantic query results)

Specifically, is it possible to use this extension to whitelist semantic data?



Thomas-topway-it (talkcontribs)

hello @Revansx Richard, I answer this message because recently I came across your idea to whitelist specific api calls. This could be done recording semantic data within a slot, querying them with an api call like the following


(originally proposed by Derk-Jan @TheDJ, with rvslots=*) and then whitelisting the api call using your idea. (using a regex for the titles parameter)

Revansx (talkcontribs)

Hi @Thomas-topway-it, thank you for the response.

So, iiuc you are saying I could:

  1. add some semantic data to a page (say Main Page) like [[Has Prop1::xyz]]
  2. then whitelist that page (Main Page)

then from some client location I can anonymously:

  1. curl the wiki's api.php page using the the following parameters:
    1. action = query
    2. format = json
    3. prop = revisions
    4. titles = Main Page
    5. rvprop = timestamp|content|contentmodel|slotsize
    6. rvslots = pageproperties

and the response will all the semantic properties in the page returned as JSON?

Is that right?

Thomas-topway-it (talkcontribs)
Revansx (talkcontribs)

ah, right!


Add to LocalSettings.php:

if ( {$_SERVER['REQUEST_URI']} == "/api.php?action=query&...") {
  $wgGroupPermissions['*']['readapi'] = true;



Thomas-topway-it (talkcontribs)

or replace 'readapi' with 'read'

Reply to "Whitelisting Semantic Mediawiki (SMW) Results"

Blacklist a specific wiki page?

2600:1700:1D40:BBE0:49CB:9B07:1F:1630 (talkcontribs)

Would I be able to configure it where I just blacklist one page and leave the rest of the wiki public? --@HausaDictionary

Reply to "Blacklist a specific wiki page?"

Whitelisting a specific API call

Revansx (talkcontribs)

Is it possible to use this extension to whitelist a specific API call.

something like:

if ( {$_SERVER['REQUEST_URI']} == "/api.php?action=query&meta=siteinfo&siprop=statistics&format=json") {
  $wgGroupPermissions['*']['readapi'] = true;

but managed in the "MediaWiki:Public read whitelist" page

Reply to "Whitelisting a specific API call"

MultimediaViewer with Whitelist Pages

2A0B:33C0:2:22:D02E:B12B:6876:A64C (talkcontribs)

In my wiki only white listed pages are visible to everybody. Since that the MultimediaViewer is not working anymore. Does anybody have a solution for that?

Reply to "MultimediaViewer with Whitelist Pages"

Which kind of path in the special MediaWiki page?

2 (talkcontribs)

I didn't understand how to use it.

This extension have been activated on the wiki farm where I have a wiki, but I don't know how to use on my wiki. (talkcontribs)

I mean, I have to write every whitelisted page in: MediaWiki:Public read whitelist, but have you got some examples, can I write absolute paths or relative ones

Reply to "Which kind of path in the special MediaWiki page?"

Possible to make this extension work with DPL or Category Tree

1 (talkcontribs)

Would be nice if you could add a Category Tree to the MediaWiki:Public read whitelist page. Then you could have a Public category that would every page to be whitelisted.

Reply to "Possible to make this extension work with DPL or Category Tree"

Add Special pages with subpage to Whitelist

Zerano8 (talkcontribs)

Hi there,

how can I add a Special page with subpage to a Whitelist?



Are there delimiters which I can use?

like !^ $! .*$

Reply to "Add Special pages with subpage to Whitelist" (talkcontribs)

Link to code is dead.

Reply to "Dead link"
There are no older topics