You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ebook/en/content/019-working-with-cloudflare-api-with-bash.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ I host all of my websites on **DigitalOcean** Droplets and I also use Cloudflare
4
4
5
5
My personal favorite Cloudflare feature is their free DDoS protection. It has saved my servers multiple times from different DDoS attacks. They have a cool API that you could use to enable and disable their DDoS protection easily.
6
6
7
-
This chapter is going to be an exercise! I challange you to go ahead and write a short bash script that would enable and disable the Cloudflare DDoS protection for your server automatically if needed!
7
+
This chapter is going to be an exercise! I challenge you to go ahead and write a short bash script that would enable and disable the Cloudflare DDoS protection for your server automatically if needed!
8
8
9
9
## Prerequisites
10
10
@@ -36,7 +36,7 @@ yum install curl
36
36
apt-get install curl
37
37
```
38
38
39
-
## Challange - Script requirements
39
+
## Challenge - Script requirements
40
40
41
41
The script needs to monitor the CPU usage on your server and if the CPU usage gets high based on the number vCPU it would enable the Cloudflare DDoS protection automatically via the Cloudflare API.
0 commit comments