Created on 01 June 2021
icon_unfollowing
Login to follow
clientipverifier

ClientIPVerifier

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 01 June 2021 by 
clientipverifier

ClientIPVerifier

Details
The ClientIPVerifier component allows restrict the access to applications for specific IP Networks or a list of IP addresses. The goal is to enable the IP filtering on Reactive and Mobile applications, similar with what we can achieve with the InternalOnly flag on Traditional web applications.
Read more

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:

  • Allowed IPs - The list of IP addresses that can access the applications;
  • AllowedNetworks - The list of network ranges that can access the applications;

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:


Apply the protection to the full application


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:

  • We should protect all Screen Aggregates with one additional filter "IsClientIPAllowed()".
  • We should protect all Data Actions calling the "IsClientIPAllowed" action and only returning data if this action returns true.
  • We should protect the login screen by calling the "IsClientIPAllowed" action and only allow the login if this action returns true.


Apply the protection to specific application pages/screens


When we want to apply the IP protection to specific application pages/screens (please check the page ClientIPVerificationPageLevel on the demo application)

Important remarks:

  • We should protect all Screen Aggregates with one additional filter "IsClientIPAllowed()".
  • We should protect all Data Actions calling the "IsClientIPAllowed" action and only returning data if this action returns true.

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.

Release notes (1.0.0)
Reviews (0)
Category
Functional libraries & utilities, Network
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
ClientIPVerifier has no dependencies.
Application Objects
ClientIPVerifier has 0 AOs.
Team
Compatible with
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.528 to 11.0.615
Database:
All
Asset consumers
No consumers yet.
Weekly downloads