HTTP Web Security

General Web Validation

Captcha Mechanism

HTTP Standard Authentication

API Features

Other Practical Features

IP Whitelist/Blacklist

IP whitelist/blacklist validation is a common security measure used to allow or deny specific IP addresses access to interfaces, pages, or services.

Scenario Description

Usage

YAML Configuration

Usually, only one of whitelist or blacklist is set at a time.

security:
  IpList:
    globalCheck: true # Global check
    enabled: true
    whiteList:
      - 192.168.1.1
      - 192.168.1.2

Interceptor Validation

Add the @IpListCheck annotation to the interface in use:

@GetMapping("/IpListCheck")
@IpListCheck
int IpListCheck();

Roadmap

Consider IPv6 and separate configuration for annotations.