I would like to limit the possibility to connect to my Mediawiki web site to a specified list of ip.
The url to connect are :
- /index.php/Spécial:Connexion
- /index.php?title=Spécial:Connexion
- /index.php?title=Spécial:Connexion&action=submitlogin&type=login
I use Nginx. My first thought was to limit the acces to /index.php/Spécial:Connexion
location = /index.php/Spécial:Connexion {
allow 127.0.0.1;
deny all;
}
And for the other, I thought to do this
location = /index.php {
if ($arg_title = "Sp%C3%A9cial:Connexion")
{
# allow / deny are not allowed in an if statement
}
}
Does anyone has an idea to achieve my goal ?