A sudden spike in traffic can take your self-hosted site offline. Before you treat the outage as a DDoS attack, confirm that the disruption is traffic-related. Contact your network administrator to rule out maintenance or internal network failures, then examine logs and service behavior for attack patterns: requests from the same IP addresses at high volume, traffic targeting one URL, or repeated server crashes. The workflow below shows you how to collect evidence, apply mitigation, protect your origin, and verify recovery.
Confirm the Traffic Pattern
Check your network monitoring tools or bandwidth reports for abnormal traffic spikes. A DDoS attack produces observable deviations from your baseline: a sudden increase in requests from specific IP addresses, high volumes targeting a single resource or URL, or sustained bandwidth consumption that exhausts your available capacity. Compare current traffic to your usual pattern to identify whether the surge is anomalous.
Collect Incident Records
Preserve evidence while you respond. Document timestamps, source IP addresses, packet captures, and any logs or alerts your network infrastructure generated. Record which services are affected and the extent of the disruption. This information guides your mitigation choices, helps you analyze the attack afterward, and may be required if you report the incident to law enforcement or your service provider.
Apply Mitigation to the Affected Service
Contact your ISP or hosting provider to inform them about the attack. They may have mitigation measures in place or be able to reroute traffic to reduce the impact. If you use a third-party DDoS mitigation service, activate it now.
Configure your network infrastructure, firewalls, or intrusion prevention systems to filter malicious traffic. Use rate-limitation or access control lists to block traffic from suspicious IP addresses or specific protocols commonly used in DDoS attacks. If your infrastructure capacity allows, scale up bandwidth and resources temporarily to absorb the attack traffic.
For sites using Cloudflare, consider enabling Under Attack Mode in Quick Actions only as a last resort. It performs additional security checks to help mitigate layer 7 DDoS attacks, but it is designed to be used when a zone is under attack and will temporarily pause access to your site and impact your site analytics. Validated users will see an interstitial page before accessing your website, and suspicious traffic is blocked. Turn it off once the attack subsides to restore normal operation.
Review Origin Access Rules
If you use Cloudflare as your proxy, review your DNS records and origin protection settings. Proxied (orange-clouded) DNS records hide your origin IP addresses and provide DDoS protection. Only A, AAAA, and CNAME records that serve HTTP or HTTPS traffic can be proxied. Ensure that Cloudflare IP addresses are allowed at your origin to prevent legitimate requests from being blocked.
Audit your DNS-only records for SPF, TXT, and similar types to confirm they do not contain origin IP information that attackers could use. If your origin IPs were exposed before onboarding to Cloudflare or during the attack, rotate them at your hosting provider once mitigation is in place.
Assess Recovery
After mitigation is active, reassess the affected services. Check that traffic has returned to normal levels and that server resource utilization—CPU usage, memory consumption, bandwidth—is no longer saturated. Restore any services or systems that remain disrupted.
Verify that legitimate users can access your site. Overly aggressive filtering or rate limits may block valid requests. If you enabled Cloudflare Under Attack Mode, monitor visitor access and turn it off once the attack has subsided.
Conduct a post-incident analysis to understand the attack characteristics, vulnerabilities exploited, and attack vectors used. Update your incident response plan and security measures based on what you learn.
FAQ
How do I inspect origin access logs for direct attacks?
If you use Cloudflare, check that incoming requests originate from Cloudflare's published IP address ranges.
What if I don't have a baseline traffic pattern?
Without a baseline, compare current traffic to recent history. Look for sudden changes in request volume, source IP distribution, or targeted resources. After recovery, establish a baseline by measuring normal traffic patterns and resource utilization during typical operation so you can identify future anomalies quickly.
Next Step
After the immediate incident, implement proactive defenses. For Cloudflare users, review CDN caching strategies and consider deploying an open-source web application firewall for additional request filtering.
Verification status: Supported by official documentation only under the conditions below; not reproduced in a test environment by IGPROD. Checked 2026-10-21.
Conditions:
- Cloudflare origin-protection steps apply to sites using Cloudflare as their proxy.
- Cloudflare states that only eligible A, AAAA, and CNAME records serving HTTP or HTTPS can be proxied.
- Under Attack mode is intended as a last resort for a zone under attack and temporarily affects visitor access.
- ISP or third-party mitigation services can be activated if available.
Related guides
- Proxmox HA for small clusters: quorum, storage and failover: keep the service up when one machine fails.
Sources:
Leave a comment
Your email address will not be published. Required fields are marked *
