Jump to content

Extension talk:Whitelist Pages

About this board

Whitelisting Semantic Mediawiki (SMW) Results

6
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?

Thanks!

/Rich

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

https://wikienterprise.org/w/api.php?action=query&format=json&prop=revisions&titles=Main%20Page&rvprop=timestamp%7Ccontent%7Ccontentmodel%7Cslotsize&rvslots=pageproperties

(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!

ref:

Add to LocalSettings.php:

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

Thanks!

/Rich

Thomas-topway-it (talkcontribs)

or replace 'readapi' with 'read'

Reply to "Whitelisting Semantic Mediawiki (SMW) Results"

Blacklist a specific wiki page?

1
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

1
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

1
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
87.91.51.235 (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.

87.91.51.235 (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
104.129.204.90 (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

1
Zerano8 (talkcontribs)

Hi there,

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

e.g.:

Special:Contributions/Users

Are there delimiters which I can use?

like !^ $! .*$

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

Link to code is dead.

Reply to "Dead link"
There are no older topics