Skip to content

HostOnNet/cloudflare-under-attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudFlare Under Attack

This is a simple Node.js script (this is my first Node.js script, so it may not perfect), that run on server every X minutes.

It check server load, if load is high, turn on CloudFlare IUAM mode.

Run the script in cronjob every 5 minutes

*/5 * * * *  cd /root/ddos && /usr/bin/nodejs cloudflare.js

You need to install dependency for node.js, for that run

cd /root/ddos
npm install

Editing cloudflare.js

You need to edit the file, update following

  • CF_API_KEY = your cloudflare API key.
  • YOUR-DOMAIN-NAME.COM = Your domain under cloudflare protection.
  • [email protected] = your cloudflare login email address.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published