File Path Rules

1. Special Notes

1) The asterisk (*) represents zero to infinite arbitrary characters.

2) Paths are case-insensitive.


2. Path Rules

You can enter either a full path or a partial path.


Wildcard Requirement for Partial Paths:

If using a partial path, it must contain an asterisk (*). The * can be placed anywhere in the path.


Example Explanations:

d:\wwwroot

Represents the d:\wwwroot directory itself (exact match).


d:\wwwroot\

Represents the d:\wwwroot directory itself, identical to d:\wwwroot.


d:\wwwroot\*

Represents the d:\wwwroot directory itself and all its subdirectories (recursive matching).


d:\wwwroot*

Represents any path starting with d:\wwwroot, such as:

d:\wwwroot

d:\wwwroot2

d:\wwwroot3\index.php

Range Formula (Matching Hierarchy):
d:\wwwroot* ≥ d:\wwwroot\* ≥ d:\wwwroot\ = d:\wwwroot


*\admin\*

Represents paths containing \admin\, such as:

d:\wwwroot\admin\login.php

d:\wwwroot\admin


*\admin*.php

Represents paths containing \admin and ending with .php, such as:

d:\wwwroot\admin.php

d:\wwwroot\admin\login.php


*.asp

Represents paths ending with .asp, such as:

d:\web\index.asp

But does not include: d:\web\index.aspx


d:\wwwroot\index.php

Represents the exact file d:\wwwroot\index.php itself.



3. Sub-Path Rules

The tamper protection module supports sub-paths. In addition to following the rules above, the following requirements apply:


Only absolute paths starting from the server root or partial paths beginning with * are allowed.

If only * is entered, it represents all sub-paths.


Example 1:

Main Path: /wwwroot/*

Sub-Path: /site1/*

Result: Error (Sub-path is not within the main path)


Example 2:

Main Path: /wwwroot/*

Sub-Path: /wwwroot/site1/*

Result: Correct

Matches: /wwwroot/site1 itself and its sub-paths


Example 3:

Main Path: /wwwroot/web/*

Sub-Path: */web/*

Result: Correct


Matches: All sub-paths within /wwwroot/web that contain /web/, such as:

/wwwroot/web/web

/wwwroot/web/site1/web

/wwwroot/web/web/index.php

/wwwroot/web/site1/web/index.php


Non-Matching Paths:

/wwwroot/web

/wwwroot/web/index.php



4. Directory Path Rules

Certain modules only allow directory paths to be specified, such as Webshell Protection and Snapshot Protection.


Filling Requirements:

Only absolute paths are permitted.

The path must end with *.


The system performs automatic conversion:

Entering d:\web or d:\web\ will both be automatically converted to d:\web*.


Clarification:

In fields where only directory paths are accepted, d:\web, d:\web\, and d:\web* are treated as identical.


<< Others