Limit Access During Development
During development, it’s common to want only a few select people to be able to view a site. Password protecting your site is simple and easy with WP Engine’s password protection feature. You can enable password protection for your production and/or staging environment, allowing your team to develop and review your site on WP Engine before going live.
How to password protect an environment:
- Navigate to the Utilities page for the site you’d like to password protect.
- In the “Password Protected” section, check the box for the environment you’d like to protect: Production, Staging, or both.
- If you’d like to set a different password than the system default, click the edit button and enter a password of your choice. Passwords must be at least 6 characters long.
- Click Save.
- Users who navigate to your site will need to enter the username and password listed on the Utilities page.
- To disable password protection, simply uncheck the boxes in the “Password Protected” section and click save.
Why do I get multiple login prompts?
Some users may be prompted to enter the username and password more than one time in order to view the site. This can occur when you have content or assets loading from more than one domain. For example, you might have images at [environment].wpengine.com/image.jpg as well as www.mycoolsite.com/image2.jpg.
To avoid this, ensure your assets’ paths utilize only a single domain, or use relative paths in your site’s code.