Restricting page access based on location

Can we restrict page access or hide certain elements of a page based on the geographic location of login?


You can use the getCurrentGeolocation() function in the wix-window API to retrieve the user’s IP-based location coordinates. Based on those coordinates, you can have something happen within the onReady function of your page code. Take a look at this example here to find out how to find the exact coordinates of a location, or given the coordinates, discover the name of the location.
Once you have the location, you should be able to write the conditions that you would like to set for elements or pages within the page code.

Best regards,
Edward | Corvid Team