Getting Started

Limit Access to the Login Page to Specific IP Addresses

10 views April 25, 2017 March 11, 2019 admin 0

Securing your site is important. After all, it means you are protecting not only your personal information and data, but also any information your users collect on your site.

To limit the access to the login page to one or multiple static IP addresses:

  1. Open the following file: @app/config/params.php
  2. Add one or more IP Addresses to the ‘App.User.validIps’ key
  3. Save the file

That’s it! When an unauthorized visitor tries to access that page, he’ll see an 404 error – Page Not Found.

Note: If you’re not sure which is your IP address, just ask Google. Just enter “What is my IP” and Google will tell you.

Was this helpful?