Topic on Project:Support desk

Allow an IP adress to read

6
Babytigers (talkcontribs)

Hi,

I'm working on my own extension to download article in pdf.

Is it possible to allow an adress IP to read article? The IP is the wiki server ip.

Or if it's impossible, there is another way ?

Thanks you

Clement

87.123.16.40 (talkcontribs)

You are in a wiki, where people do not have read access, except they are logged in, right?

Babytigers (talkcontribs)

yes.

in my localsettings i add :

$wgGroupPermissions['*']['read']    = false;

$wgGroupPermissions['user']['read'] = true;

87.123.16.40 (talkcontribs)

I do not know of a way inside the MediaWiki Core itself to grant access based on the use of a certain IP address. Maybe something like that is possible with an extension.

However, it might be easier to just have your extension log in with a user account, e.g. using the API:Login.

Babytigers (talkcontribs)

ok i am trying this solution .

Thanks you

Jlvale (talkcontribs)

@BabytigersYou managed to do this? I'm doing the same as you were, but I'm stuck in the same problem.

Reply to "Allow an IP adress to read"