Search the Community
Showing results for tags 'layer7'.
-
Version 1.0.0
6 downloads
What's The CloudFlare Automatic DDoS Protection Api; -This is a php library and Its purpose is to detect incoming requests to your site and decide whether it is a ddos attack or not, If this is a ddos attack, it will connect to your cloudflare API and activate the UnderAttack mode of your site. Example Using <?php include 'UnderAttack.php'; $underattack = new UnderAttack(); $underattack->setRequestFile('requests.json'); // Set your request log location. $underattack->setModeFile('mode.json'); // Set your mode log location. $underattack->setSeconds(5); // If there are as many requests as you enter within the second you enter, it will keep the underattack mode on for the second you enter. $underattack->setRequests(40); // If there are as many requests as you enter within the second you enter, it will keep the underattack mode on for the second you enter. $underattack->setHoldTime(600); // It will keep the UnderAttack Mode on for as long as you enter it. $underattack->setCloudflareApiKey('Your CloudFlare Api Key'); // Your CloudFlare Api Key https://dash.cloudflare.com/profile/api-tokens $underattack->setCloudflareEmail('Your CloudFlare Email Address'); // Your CloudFlare Email Address. $underattack->setCloudflareZoneid('Your App Zone id'); // Your CloudFlare App zone id. $underattack->SetIpDriver('REMOTE_ADDR'); // Ip Get Driver. $underattack->run();$15.00- 2 comments
-
- #ddos
- #cloudflare
-
(and 3 more)
Tagged with: