Website security protection

📅 November 21, 2026 👁️ 0

Website security protection

Website security protection is achieved through frequency limits, IP whitelist and blacklist, UA checks, and memory threshold to intercept abnormal access.

Entry Path

Top menu of the background → 'Function' → 'System Function' → 'Website Security Protection'. Actual address:/system/plugin/system/limiterrequires administrative privileges(canAdmin)

Function description

The page includes the master switch for protection, spider release, empty UA/empty Refer restriction, temporary ban strategy, IP whitelist and blacklist, specific UA restriction, path prefix exclusion and memory limit, and provides a list of temporarily banned IPs.

Screenshot of the interface

Website security protection

Setting item description

Setting items function Value / Default How to select / Fill in suggestions Impact / Note
Enable website security protection Master switch radio: Off (default) / On [实测] Enable when attacked by data collection or CC attack All settings below will not take effect after closing
Whether to allow spider release Whether to not intercept search engine spiders radio: No (实测) / Yes [实测] Recommend selecting 'Yes' Selecting 'No' may affect inclusion
Limit empty UserAgent Block requests without UA radio: No / Yes,实测 'No' [实测] Can block some collection tools —
Limit empty Refer Block static resource requests with empty source radio: No / Yes,实测 'No' [实测] Used when anti-hotlinking Only affects resources, does not affect the web page
Temporarily disable IP Access frequency threshold Number, default 100 times per 5 minutes [i18n]; actual 0 [actual] Set according to the peak usage of normal users 0 or leave blank to use the default 100
Temporary disable duration Duration after triggering the disable Number, default 1 hour [i18n]; actual 0 [actual] Generally 1-24 hours —
Whitelist IP Allow specified IP/segment Text field, one per line, supports CIDR [source code] Add office/home IP Mistake may block yourself outside
Blacklist IP Deny specified IP/segment Text field, one per line, supports CIDR [source code] Add confirmed malicious source —
Restrict specific UserAgent Deny specified UA Text field, one per line [source code] Block known collection UA —
Exclude specific path prefixes These paths are unrestricted Text field, one per line, such as/api[Source code] Allow API or verification files Avoid affecting normal interfaces
Memory limit Deny requests when memory exceeds the threshold radio: No / Yes [source code] Enable when server memory is tight —
**Use memory percentage Memory threshold Number 50-100, default 90 [i18n] Default 90 is enough Setting it too low may reject normal requests

Detailed explanation of configuration items

IP and path rules

Condition for occurrence: Effective after enabling protection [Source code].

IP whitelist/blacklist, UA list, and path prefixes are parsed line by line; IP supports single address and CIDR (such as192.168.2.0/24)[source code].

Recommended value: The whitelist should add your own management IP first; add path exclusion/apifor interfaces that need to be allowed through.

Consequences of filling in incorrectly: Incorrect CIDR writing may reject a large number of normal users, or block administrators from the background.

Memory limit (duplicate field)

Condition for occurrence: Duplicate option and percentage fields related to memory limit appeared in the source codename(mem_limit/mem_percent), Different i18n keys, but both control memory limit display [COMPUTED].

influence: Fill in the group displayed on the interface as a reference; both groups exist simultaneously, which is a frontend repeat rendering, check whether it takes effect after filling in the front end

Operation steps

  1. Enter Function → System Function → Website Security Protection
  2. Turn on the master switch.
  3. Set spider pass and empty UA/Refer strategy
  4. Configure blocking thresholds, IP list, and path exclusion
  5. Click 'Submit' to save and observe the effect on the 'IPs Temporarily Blocked' tag

Operation steps

  1. Enter Function → System Function → Website Security Protection
  2. Turn on the master switch.
  3. Set spider pass and empty UA/Refer strategy
  4. Configure blocking thresholds, IP list, and path exclusion
  5. Click 'Submit' to save and observe the effect in 'Temporarily Banned IPs.'

Applicable scenarios and suggestions

  • Turn on when attacked by collection or CC attacks and配合 IP blacklist.
  • It is recommended to keep 'Yes' for bypassing spiders, otherwise it may affect indexing.

Points to note

  • A wrong whitelist may block yourself or normal users outside.
  • Setting the memory limit too low may mistakenly reject normal requests.
  • Excluding path prefixes can be used to bypass APIs or verify files, to avoid collateral damage.

Related documents

Related articles

Prevent collection interference code

To prevent data collection interference, random content can be injected into the page or interactions can be disabled to increase the difficulty of data collection.

2026-11-21

Static page caching

Static page caching is used to cache the home page, list page, and detail page as static files, to accelerate access speed, and to support pushing to a static site server.

2026-11-21

Full-text Search

Full-text search is used to make the front-end search cover the document body, categories, and tags, not just the title. The page itself is a conditional联动 multiple configuration form, and after it is enabled, the engine needs to be selected and the index range needs to be configured.

2026-11-21

Friend Links Management

Friend link management is used to maintain links to other sites from this site and provides a friend link API for third-party access.

2026-11-21

301 Redirect Management

301 Redirect Management is used to configure redirection from old links to new links, often used to retain SEO weight after a revamp.

2026-11-21

Replace site-wide

Full-site replacement is used to batch replace the specified text in multiple types of data, supporting plain text and regular expressions.

2026-11-21

Resource Storage Configuration

Resource storage configuration is used to select the storage location for uploading images and files, supporting local storage and multiple cloud storage options.

2026-11-21

Translation configuration

Translation configuration is used to select the translation service interface used by the site.

2026-11-21