Private WordPress Website

Restrict access to all the pages on the website for all visitors (unauthenticated users) and redirect visitors to the default WordPress login page `/wp-login.php`. Upon successful authentication, the user will be redirected to the previous page.

WordPress login form

    "Version": "1.0.0",
    "Dependency": {
        "wordpress": ">=5.3.2",
        "advanced-access-manager": ">=6.2.0",
        "${CONST.AAM_PLUS_PACKAGE}": {
            "Name": "Plus Package",
            "Version": ">=5.0.0",
            "URL": ""
    "Statement": [
            "Effect": "deny",
            "Resource": "URI:*",
            "Metadata": {
                "Redirect": {
                    "Type": "login"
            "Effect": "allow",
            "Resource": "URI:/wp-login.php"
Copy this unique number and use it to install the policy on your website. To learn more how it works, follow this link.
DEPENDENCIES List of required plugins for this policy to work properly.
WordPress >=5.3.2
Advanced Access Manager >=6.2.0
Plus Package >=5.0.0
ASSIGNEES The type of audience the policy is automatically applied to as well as excluded. To learn more how it works, follow this link
  • All Visitors (not authenticated)