Skip to content

Anti DoS or DDoS for Your Website.

License

Notifications You must be signed in to change notification settings

NaInSec/Anti-DDoS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anti DDoS

A simple way to protect your web application from DDOS attack(FREELY) in 1 line.

How it work?

At each connection, the system temporarily saves the ip address of the client and monitors its connection frequency, if this connection frequency is abnormal, then the system considers it as a black ip address and sends a verification request in the form of a verification. Captcha integrated into the system, if he passes this check, then it is a human and not a robot!

"This project has been tested by severals ddos software with a score of 77%."


How to use it?

Basic USAGE

<?php
	include ("antiddos/start.php"); //write this at the top of your PHP application and all is done!!!
?>
<!DOCTYPE html>
<html>
<head>
	<title>
		Example Web page protected!
	</title>
</head>
	<body>
		...
		<h2>NaInSec</h2>
		...
	</body>
</html>

Advance USAGE:

<?php
	try{
		if (!file_exists('antiddos/start.php'))
			throw new Exception ('antiddos/start.php does not exist');
		else
			require_once('antiddos/start.php'); 
	} 
	//CATCH the exception if something goes wrong.
	catch (Exception $ex) {
		// et's print a message saying there is an error
		echo '<div style="padding:10px;color:white;position:fixed;top:0;left:0;width:100%;background:black;text-align:center;">The <a href="https://github.com/NaInSec/Anti-DDoS" target="_blank">"Anti DDoS"</a> failed to load properly on this Web Site, please de-comment the \'catch Exception\' to see what happening!</div>';
		//Print out the exception message.
		//echo $ex->getMessage();
	}
	// cp -r Anti-DDoS/ /var/www/html/
?>
---- THE HTML PAGE CONTENT ----

Donate :

BTC - 14xMeDbjsyBCtjCLsaKBYLqw4C2Sf145o5
ETH - 0xd7e669f6f861e7ac8c4ebbc7852b226af98517e4