Skip to content

Protecting /wp-admin and wp-login.php #9

Description

I wish to protect the login to a set of restricted IP addreses. I attempted to do this, but seem to get redirect loops in certain situations.

Perhaps its conflicting with a WordPress security plugin to rename /wp-login.php to /login etc.

location ~ ^/(wp-admin|wp-login.php) {
allow 1.2.3.4;
deny all;
}

Could you include a set of rules for restricting the admin sections?

Thanks,

A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions