To enable a Web Application Firewall (WAF) to block SQL injection requests in an emergency, follow these steps:
Activate WAF: If not already enabled, quickly activate the WAF service for your web application. For example, on Tencent Cloud, you can use the Tencent Cloud WAF service to deploy protection in minutes.
Configure SQL Injection Rules:
Emergency Mode (If Available):
Test & Monitor:
Example:
If your website (example.com) is under SQLi attack, log in to Tencent Cloud WAF, create a rule to block payloads like ' OR '1'='1, and apply it to your domain. Traffic matching this pattern will be blocked instantly.
For immediate deployment, Tencent Cloud WAF supports auto-protection for common web vulnerabilities, including SQLi, with minimal configuration.