Rickthor7

Script Anti DDoS

Nov 10th, 2022
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2. try{
  3. if (!file_exists('anti_ddos/start.php'))
  4. throw new Exception ('anti_ddos/start.php does not exist');
  5. else
  6. require_once('anti_ddos/start.php');
  7. }
  8. //CATCH the exception if something goes wrong.
  9. catch (Exception $ex) {
  10. // et's print a message saying there is an error
  11. 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/sanix-darker/antiddos-system" target="_blank">"AntiDDOS System"</a> failed to load properly on this Web Site, please de-comment the 'catch Exception' to see what happening!</div>';
  12. //Print out the exception message.
  13. //echo $ex->getMessage();
  14. }
  15. // cp -r AntiDDOS-system/ /var/www/html/
  16. ?>
  17. ---- THE HTML PAGE CONTENT ----
Advertisement
Add Comment
Please, Sign In to add comment