Skip to content

WebLockConfigProps

Properties for defining a WebLockConfig.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-threatdetection-weblockconfig

Initializer

using AlibabaCloud.SDK.ROS.CDK.Threatdetection;
new WebLockConfigProps {
    object DefenceMode,
    object Dir,
    object LocalBackupDir,
    object Uuid,
    object ExclusiveDir = null,
    object ExclusiveFile = null,
    object ExclusiveFileType = null,
    object InclusiveFile = null,
    object InclusiveFileType = null,
    object Mode = null
};

Properties

Name Type Description
DefenceMode object Property defenceMode: The prevention mode.
Dir object Property dir: The directory for which you want to enable web tamper proofing.
LocalBackupDir object Property localBackupDir: The local path to the backup files of the protected directory.\ The directory format of a Linux server is different from that of a Windows server. You must enter the directory in the required format based on your operating system. Examples: * Linux server: \/usr\/local\/aegis\/bak * Windows server: C:\Program Files (x86)\xxx\Aegis\bak.
Uuid object Property uuid: The UUID of the server for which you want to add a directory to protect.
ExclusiveDir object Property exclusiveDir: The directory for which you want to disable web tamper proofing.
ExclusiveFile object Property exclusiveFile: The file for which you want to disable web tamper proofing.
ExclusiveFileType object Property exclusiveFileType: The type of file for which you want to disable web tamper proofing.
InclusiveFile object Property inclusiveFile: The file that has web tamper proofing enabled.
InclusiveFileType object Property inclusiveFileType: The type of file for which you want to enable web tamper proofing.
Mode object Property mode: The protection mode of web tamper proofing.

DefenceModeRequired

public object DefenceMode { get; set; }
  • Type: object

Property defenceMode: The prevention mode.

Valid values:

  • block: Interception Mode
  • audit: Alert Mode.

DirRequired

public object Dir { get; set; }
  • Type: object

Property dir: The directory for which you want to enable web tamper proofing.


LocalBackupDirRequired

public object LocalBackupDir { get; set; }
  • Type: object

Property localBackupDir: The local path to the backup files of the protected directory.\ The directory format of a Linux server is different from that of a Windows server. You must enter the directory in the required format based on your operating system. Examples: * Linux server: \/usr\/local\/aegis\/bak * Windows server: C:\Program Files (x86)\xxx\Aegis\bak.


UuidRequired

public object Uuid { get; set; }
  • Type: object

Property uuid: The UUID of the server for which you want to add a directory to protect.

You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.


ExclusiveDirOptional

public object ExclusiveDir { get; set; }
  • Type: object

Property exclusiveDir: The directory for which you want to disable web tamper proofing.

If you set Mode to blacklist, you must specify this parameter.


ExclusiveFileOptional

public object ExclusiveFile { get; set; }
  • Type: object

Property exclusiveFile: The file for which you want to disable web tamper proofing.

If you set Mode to blacklist, you must specify this parameter.


ExclusiveFileTypeOptional

public object ExclusiveFileType { get; set; }
  • Type: object

Property exclusiveFileType: The type of file for which you want to disable web tamper proofing.

Separate multiple types with semicolons (;). Valid values:

  • php
  • jsp
  • asp
  • aspx
  • js
  • cgi
  • html
  • htm
  • xml
  • shtml
  • shtm
  • jpg
  • gif
  • png

If you set Mode to blacklist, you must specify this parameter.


InclusiveFileOptional

public object InclusiveFile { get; set; }
  • Type: object

Property inclusiveFile: The file that has web tamper proofing enabled.

If the value of Mode is whitelist, this parameter is returned.


InclusiveFileTypeOptional

public object InclusiveFileType { get; set; }
  • Type: object

Property inclusiveFileType: The type of file for which you want to enable web tamper proofing.

Separate multiple types with semicolons (;). Valid values:

  • php
  • jsp
  • asp
  • aspx
  • js
  • cgi
  • html
  • htm
  • xml
  • shtml
  • shtm
  • jpg
  • gif
  • png

If you set Mode to whitelist, you must specify this parameter.


ModeOptional

public object Mode { get; set; }
  • Type: object

Property mode: The protection mode of web tamper proofing.

Valid values:

  • whitelist: In this mode, web tamper proofing is enabled for the specified directories and file types.
  • blacklist: In this mode, web tamper proofing is enabled for the unspecified sub-directories, file types, and files in the protected directories.