How to Protect a Website in China from DDoS and CC Attacks

To protect a website that serves visitors in China, put it behind a CDN that absorbs network-level DDoS floods (measured in Gbps), filters application-level CC attacks (HTTP floods, measured in requests per second), and runs a web application firewall (WAF). Hide your origin server’s IP, only allow traffic from the CDN, and set custom CC rules for login, search and checkout pages.

DDoS vs CC attacks: what’s the difference?

DDoS (network/transport layer)CC attack (application layer)
What it doesFloods your bandwidth or server with huge volumes of packetsSends large numbers of normal-looking HTTP requests to heavy pages
Measured inGbps or packets per secondRequests per second (RPS)
Typical targetsYour IP address and open portsLogin, search, cart and API endpoints
How it is stoppedHigh-capacity scrubbing on the network edgeRate limits, bot challenges and custom rules

“CC” comes from “Challenge Collapsar”, a name widely used in China for HTTP flood attacks. A CC attack can take a site offline with far less traffic than a DDoS attack, because each request makes your server do real work.

Why sites serving China need extra protection

  • Attacks are common in competitive industries such as gaming, e-commerce and finance.
  • If your origin server is abroad, every attack request also travels over congested cross-border links, which slows the site down for real users.
  • Paying for bandwidth during an attack can be expensive if the traffic hits your origin directly.

Step-by-step protection checklist

1. Put the whole site behind a CDN with DDoS defense

Point your DNS to the CDN so attacks hit the CDN’s edge, not your server. Check the protection capacity in writing. For example, Wukong CDN plans include 250 Gbps to 600 Gbps of DDoS defense, depending on the plan.

2. Hide and lock down your origin

If attackers know your origin IP, they can bypass the CDN. Use a new IP after moving behind the CDN, and configure your firewall to accept web traffic only from the CDN’s addresses. Don’t expose the origin IP in DNS records, emails or old subdomains.

3. Turn on CC protection and custom rules

Set rate limits per IP and per URL, and stricter rules for expensive pages such as login, search and checkout. Wukong CDN plans include CC defense from 30,000 to 100,000 requests per second, plus custom CC defense rules on every plan.

4. Use a WAF for common web attacks

A web application firewall blocks SQL injection, cross-site scripting and known exploit patterns before they reach your application. Keep the CMS, plugins and server software updated too, because a WAF is a safety net, not a replacement for patching.

5. Cache as much as possible

Pages served from the CDN cache don’t touch your server, so a well-cached site survives attacks far better. Cache static files and, where possible, whole pages for anonymous visitors.

6. Monitor and have a plan

Know who to contact and what to switch on (for example, stricter CC rules) when traffic spikes. Review logs after each incident and tighten the rules that were bypassed.

FAQ

How much DDoS protection do I need?

It depends on your industry and how attractive a target you are. Small business sites are often fine with a few hundred Gbps of edge protection; high-risk industries may need more. The capacity must be applied at the edge, before traffic reaches your server.

Can a WAF stop DDoS attacks?

Not on its own. A WAF inspects web requests for malicious patterns. Large DDoS floods have to be absorbed by network capacity, and HTTP floods by CC rate limiting.

Will protection slow my site down?

A good CDN usually makes the site faster, because content is cached closer to visitors in China. See how to make your website load fast in China.

Protect your site with Wukong CDN

Every Wukong CDN plan includes WAF, DDoS and CC defense, custom CC rules and SSL. Compare protection levels by plan or talk to our team if you are under attack now.

Related reading: China CDN for e-commerce · How to test website speed in China