Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Edge Security/ Best Practices/ Basic Web Protection

Basic Web Protection

Updated on 2025-03-04 GMT+08:00

Prerequisites

You have added domain names to the Domains module in the Content Delivery Network (CDN) service. For details, see Domain Name Management.

Application Scenarios

Use EdgeSec to enable web protection for domain names.

Adding a Website to EdgeSec

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Content Delivery & Edge Computing > CDN and Security.
  3. In the navigation pane on the left, choose Edge Security > Website Settings. The Website Settings page is displayed.
  4. In the upper left corner of the list, click Add Domain Names. For details about the parameters, see Table 1.

    Figure 1 Adding a website
    Table 1 Parameters for adding a protected website

    Parameter

    Description

    Website Name

    Name of the website you want to protect. It must meet the following requirements:

    • The name must be unique.
    • The name must start with a letter.
    • The length cannot exceed 128 characters.
    • The value can contain uppercase letters, lowercase letters, digits, and special characters (-_:).

    Domain Name

    Select a domain name to be protected. You can select a domain name whose Service Type is Website, File download, On-demand services, or Whole site on the Add Domain Name page.

    Policy

    The System-generated policy is selected by default. You can select a policy you configured before.

  5. Click OK.

Configuring a Protection Policy

  1. In the navigation pane on the left, choose Edge Security > Website Settings. The Website Settings page is displayed.
  2. In the Policy column of the row containing the domain name, click the number to go to the Policies page.

    Figure 2 Website list

  3. In the Basic Web Protection configuration area, change Status and Mode as needed by referring to Table 2.

    Figure 3 Basic Web Protection configuration area
    Table 2 Parameter description

    Parameter

    Description

    Status

    Status of Basic Web Protection

    • : enabled.
    • : disabled.

  4. In the Basic Web Protection configuration area, click Advanced Settings.
  5. On the Protection Status tab page, enable protection types you need by referring to Table 3.

    Figure 4 Basic web protection
    NOTICE:

    If you select Mode for Block on the Protection Status tab, you can select a known attack source rule to let EdgeSec block requests accordingly. For details, see Configuring a Known Attack Source Rule.

    1. Set the protection type.
      NOTICE:

      By default, General Check is enabled. You can enable other protection types by referring to Table 3.

    Table 3 Protection types

    Type

    Description

    General Check

    Defends against attacks such as SQL injections, XSS, remote overflow vulnerabilities, file inclusions, Bash vulnerabilities, remote command execution, directory traversal, sensitive file access, and command/code injections. SQL injection attacks are mainly detected based on semantics.

    NOTE:

    If you enable General Check, EdgeSec checks your websites based on the built-in rules.

    Webshell Detection

    Protects against web shells from upload interface.

    NOTE:

    If you enable Webshell Detection, EdgeSec detects web page Trojan horses inserted through the upload interface.

Suggestions

  • If you are not familiar with your website's traffic pattern, select the Log only mode for one to two weeks and analyze the logs for those days.
    • If no record of blocking legitimate requests is found, switch to the Block mode.
    • If legitimate requests are blocked, adjust the protection level or configure global protection whitelist (formerly false alarm masking) rules to prevent legitimate requests from being blocked.
  • Note the following points in your operations:
    • Do not transfer the original SQL statement or JAVA SCRIPT code in a legitimate HTTP request.
    • Do not use special keywords (such as UPDATE and SET) in a legitimate URL. For example, https://www.example.com/abc/update/mod.php?set=1.
    • Use Object Storage Service (OBS) or other secure methods to upload files that exceed 50 MB rather than via a web browser.

Protection Effect

To check whether basic web protection takes effect, enter a test domain name in the address bar of your browser and simulate an SQL injection attack. If Edge WAF blocks the attack, the configuration works. You can view attack event logs on the Dashboard page.

Figure 5 Blocking SQL attacks
Figure 6 Web security event statistics

You can also view protection logs generated in yesterday, today, past 3 days, past 7 days, 30 days, or user-defined time range on the Events page. Click Details to view detailed attack information.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback