Use the ClientIPVerifier webblock from the ClientIPVerifier_Lib on your pages/screens. This webblock will validate if the client that is accessing the application has an allowed IP address or not. If the IP is allowed, the user will be able to browse the page/screen. If the IP is not allowed an exception is raised and the page will not be displayed to the user.
The component also contains an action "IsClientIPAllowed" that should be used whenever is needed to check if the client IP is allowed to browse the webpage/screen.
The component has two site properties where we can specify which IP addresses are allowed to to access the application where the component is used:
Note: if both site properties are empty, no IP validation is done.
There are two ways of using the component, please check the demo application for all the details:
When we want to apply the protection to all application pages/screens, the component should be used at the Layout Level (please check the page ClientIPVerificationLayoutLevel on the demo application).
Important remarks:
When we want to apply the IP protection to specific application pages/screens (please check the page ClientIPVerificationPageLevel on the demo application)
On the demo application we also have a custom error page and error handling for Invalid IP addresses, please check the OnException event to understand how to redirect to this specific page.