Posted in:
Magento 2 Tutorials
How to Validate REMOTE_ADDR in Magento 2
Validate REMOTE_ADDR verify that the IP address of the request matches which request stored in the $_SESSION variable. To know, how you can set this field from the Magento 2 admin for your online store. Go with the following steps:
Steps for the set Validate REMOTE_ADDR:
- Step 1: Login with your Admin panel
- Step 2: Go on the sidebar and click on the Stores option
- Step 3: Then go on the Settings > Configuration
- Step 4: Then expand the General tab and then click on the Web option
- Step 5: Then select the Session Validation Settings section
- Step 6: Then go on the Validate REMOTE_ADDR field
- In that first uncheck the Use System Value checkbox.
- From the dropdown, select "Yes" for the check customer's public IP address is the same or not.
- Step 7: If you are done with these configuration then click on the Save Config button.
October 21, 2021
Did you like this post?