Cloudflare
Put your websites behind Cloudflare: protection from large DDoS attacks, a global cache and an "Under Attack" switch - managed from here with your own Cloudflare account (the free plan is enough).
Connect your Cloudflare account
- Sign in to dash.cloudflare.com (create a free account if you have none).
- Go to My Profile → API Tokens → Create Token → Create Custom Token.
- Give it these permissions:
Zone · Zone · EditZone · DNS · Edit Zone · Zone Settings · EditZone · Cache Purge · Purge Account · Account Settings · Read
- Zone Resources: All zones; Account Resources: your account. Create the token and copy it.
The token is stored encrypted and is never shown again.