Skip to content

Software Development at Program Tom LTD

Place for coding, programming, development and software in general.

Menu
  • Blog
  • PDF Booklets
  • Dev Utils & Content
  • Java Spring Boot Or Web Apps
  • English
    • български
    • English
    • Español
    • Português
    • हिन्दी
    • Русский
    • Deutsch
    • Français
    • Italiano
    • العربية
  • About Us
Menu
IP White List for Profile - Service

IP White List for Profiles – Service

Posted on May 30, 2021May 30, 2021 by Toma Velev

One of the ways to let users secure their profiles is allow them set IP White List from where they will access your service. The IP addresses of most users are pseudo-static in my experience – here in Bulgaria. The IPs are dynamic in settings of the Internet Provider (if the users haven’t paid additionally for truly static). In reality – they rarely change because the network hardware does not stop working. Sometimes there is electrical, hardware failure or upgrade and they may change. This does not happen too often.

Integration of some type of IP white listing is available in my personal usage in – banking and financial portals and in the big social medias. If something fishy happens, they notify in your already active session. The notification is received even when the device is new (doesn’t matter if from the same Internet Address.

So, for the purpose of securing access, I’ve made simple service with that functionality: https://programtom.com/app_profile_ip_white_list/. There are several places where I’ve already integrated the IP White List creation in my own apps, and they will grow with each idea/app/project. To minimize the work, I’ve exposed the functionality as a service. The plugging-in the same logic in a new place is – small copy/paste and change of few lines of configuration. But, that is for me. For other developers that want to use it, it will be integration with few simple endpoints.

So, the IP White List for Profiles – Service has very simple administrative definitions.

  1. App – First you create a Product where you will give the users – the possibility to restrict access.
  2. Profile – It is a User Registration that has activated the Service. You could enable or disable the feature for the concrete user.
  3. IPs added to a Profile – owned by your concrete App.

The Services exposed are:

  1. setIPWhiteListingEnabled – sets the flag in a user profile – if the white listing is active.
  2. isIPWhiteListingEnabled – returns the active flag value
  3. isIPInWhiteList – checks if some concrete IP is in the list of some profile (of concrete app)
  4. ipList – the list of Allowed IPs entered by some user [currently restricted by 100]. They are rarely more than 5 or 10.
  5. addIPinWhiteList – Adds a new IP in a User Profile List of an App
  6. removeIPinWhiteList – Removes IP from a User’s List

More technical details of – how to integrate with the Service will be given on request.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Feature Flags – Enable Functionality from the BackEnd
  • Integrating xAI Grok API with Spring Boot
  • How to Progresively Integrate AI
  • What is an AI Agent
  • Flutter image scaling

Categories

  • Apps (22)
  • ChatGPT (23)
  • Choosing a Framework (38)
  • Flutter (256)
  • Graphical User Interface (14)
  • Marketing (116)
  • Software Development (281)
  • Spring (44)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (14)

Tags

Algorithms (9) crypto (29) flutterdev (39) General (86) Java (7) QR & Bar Codes (3) Software Dev Choices (33) Spring Boot (1) standards (1) Theme (3) User Authentication & Authorization (9) User Experience (10) Utilities (19) WordPress (11)

Product categories

  • All Technologies (84)
    • Flutter Apps (24)
    • GPT (4)
    • Java (38)
    • Native Android (3)
    • PHP (9)
    • Spring (Boot) / Quarkus (35)
    • Utils (15)
    • Vaadin 24+ (27)
    • Vaadin 8 (1)
  • Apps (18)
    • Employees DB (1)
    • Notes (6)
    • Personal Budget (1)
    • Recipes Book (1)
    • Stuff Organizer (1)
    • To-Do (2)
  • PDF Books (3)
  • Source Code Generators (8)

Recent Posts

  • Feature Flags – Enable Functionality from the BackEnd
  • Integrating xAI Grok API with Spring Boot
  • How to Progresively Integrate AI
  • What is an AI Agent
  • Flutter image scaling

Post Categories

  • Apps (22)
  • ChatGPT (23)
  • Choosing a Framework (38)
  • Flutter (256)
  • Graphical User Interface (14)
  • Marketing (116)
  • Software Development (281)
  • Spring (44)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (14)