I have a Wordpress site running on nginx. What is the best way to restrict access to /wp-admin using nginx?
That would allow access from
If you wanted to do HTTP authentication instead, then you might look at the documentation for the HTTP basic auth module.
On the other hand, Wordpress administration is already authentication-protected, so with strong passwords, you shouldn't have a massive amount of trouble.