El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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
Situation Awareness
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/ Web Application Firewall/ Best Practices/ Website Protection Configuration Suggestions

Website Protection Configuration Suggestions

Updated on 2024-06-06 GMT+08:00

If you are a first-time user, you may not know how to configure website protection policies after adding a website to WAF. This topic describes how Web Application Firewall (WAF) works and helps you get familiar with the protection rules in WAF in many scenarios.

Prerequisites

Overview

This document provides suggestions on website protection settings from the perspectives of different roles or service requirements. You can select a scenario that best meets your actual requirements to learn about related protection settings.

I'm a novice. I know little about security and have no special requirements.

You may have purchased WAF to meet security and compliance requirements or to improve the security for your organization to a higher level. In this case, you can use the default basic protection settings of WAF. The default protection capability provided by WAF is sufficient to defend websites against most basic web threats.

You can watch out for Dashboard and Events pages on the WAF console to learn about your services and their security status. For more details, see:

I am a professional in security O&M, and I need comprehensive website protection operations.

The following protection settings are recommended to you:

  • Basic Web Protection: Defends against common web attacks, such as SQL injection, XSS, remote overflow attacks, file inclusion, Bash vulnerability exploits, remote command execution, directory traversal, sensitive file access, and command/code injection. It can also identify escape attacks in depth, check all fields in a request header, check Shiro encryption, and detect web shells.

    Operation: On the Policies page, click a policy name. On the displayed page, select Basic Web Protection, select Block or Log only, and enable all check items. For details, see Configuring Basic Web Protection Rules.

  • Custom protection policies: You can create custom protection rules and add them to a policy to give your website comprehensive and tailored protection.

    Operation: On the Policies page, perform related configurations. For details, see How to Configure WAF Protection.

My services have strict requirements on security. Every attack must be killed even at the expense of more false positives.

To meet your requirements, the following protection configurations are recommended:

  • Basic Web Protection (block mode): Defends against common web attacks, such as SQL injection, XSS, remote overflow attacks, file inclusion, Bash vulnerability exploits, remote command execution, directory traversal, sensitive file access, and command/code injection. It can also identify escape attacks in depth, check all fields in a request header, check Shiro encryption, and detect web shells.

    Operation: On the Policies page, click a policy name. On the displayed page, select Basic Web Protection, select Block, and enable all check items. For details, see Configuring Basic Web Protection Rules.

  • CC attack protection (block mode): Helps precisely identify and block CC attacks by limiting the access rate of a single visitor based on its IP address, cookie, or referer.

    Operation: On the Policies page, click a policy name. On the displayed page, click the CC Attack Protection area, add a rule, and set the Protective Action to Block. For more details, see Configuring a CC Attack Protection Rule.

  • Precise Protection: You can create custom protection rules by combining HTTP headers, cookies, URLs, request parameters, and client IP addresses to give your website more precise protection.

    Operation: On the Policies page, click a policy name. On the displayed page, click the Precise Protection area, add a rule, and set the Protective Action to Block. For details, see Configuring a Precise Protection Rule.

  • Blacklist and Whitelist (block mode): You can block IP addresses and IP address ranges irrelevant to your services with ease.

    Operation: On the Policies page, click a policy name. On the displayed page, click the Blacklist and Whitelist area, add a rule, and set the Protective Action to Block. For more details, see Configuring an IP Blacklist or Whitelist Rule..

  • Geolocation Access Control (block mode): You can configure geolocation access control rules to block or allow requests from a specific location. If there are too many malicious requests from a specific region, this type of rule helps block every single request from the region. A geolocation access control rule allows you to allow or block requests from IP addresses from specified countries or regions.

    Operation: On the Policies page, click a policy name. On the displayed page, click the Geolocation Access Control area, add a rule, and set the Protective Action to Block. For more details, see Configuring a Geolocation Access Control Rule.

My business is often harassed by crawlers or faces data leakage and tampering risks.

To meet your requirements, the following protection configurations are recommended:

  • Web Tamper Protection:WAF caches the pages you want to protect and returns cached pages to visitors so that your website visitors will view right pages all the time even if a web page was tampered with.

    Operation: On the Policies page, click the policy name. On the displayed page, click the Web Tamper Protection area, add a rule, and complete related settings. For details, see Configuring a Web Tamper Protection Rule.

  • Information Leakage Prevention: Helps mask sensitive information, such as ID numbers, phone numbers, and email addresses, on web pages when those pages are returned to visitors.

    Operation: On the Policies page, click the policy name. On the displayed page, click the Information Leakage Prevention area, add a rule, and complete related settings. For details, see Configuring an Information Leakage Prevention Rule.

  • Anti-Crawler Protection
    • Feature Library: You can allow access requests from legitimate crawlers (such as Googlebot and Baiduspider) but block crawler attacks from most scripts and automation programs.
    • JavaScript: If you enable this protection, WAF checks JavaScript. You can also add custom rules to prevent JavaScript crawlers.

    Operation: On the Policies page, click the policy name. On the displayed page, click the Anti-Crawler area, add a rule, and complete related settings. For details, see Configuring Anti-Crawler Rules.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback