Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


PHP Script Anti Flood DDOS filter_list
Author
Message
PHP Script Anti Flood DDOS #1
PHP Code:
<?php

if (!isset($_SESSION)) {
    
session_start();
}
// anti flood protection
if($_SESSION['last_session_request'] > time() - 2){
    
// users will be redirected to this page if it makes requests faster than 2 seconds
    
header("location: www.google.com");
    exit;
}
$_SESSION['last_session_request'] = time();

>

Reply

RE: PHP Script Anti Flood DDOS #2
So since I am rubbish at coding would i put this in the index?

Reply

RE: PHP Script Anti Flood DDOS #3
Well
It should be the part of every page on your web as it would try to divert the traffic hitting on the pages of your web.

Reply

RE: PHP Script Anti Flood DDOS #4
Nice keep up good work Smile

Reply

RE: PHP Script Anti Flood DDOS #5
(11-30-2012, 02:42 PM)Three Wrote: So since I am rubbish at coding would i put this in the index?

You would put it wherever you have your website, and then do a include(); in all files that the clients can access.

Reply

RE: PHP Script Anti Flood DDOS #6
^ That works well, but I feel sorry for Google D:

Reply

RE: PHP Script Anti Flood DDOS #7
(12-12-2012, 01:18 PM)Ultimatum Wrote: ^ That works well, but I feel sorry for Google D:

Even if you used 10 dedicated servers, it wouldn't even make Google flinch, they would literally laugh at you. The server would laugh so hard that its screws would come out.

Reply

RE: PHP Script Anti Flood DDOS #8
This is inefficient. They're better ways to go about protecting your server.

Reply

RE: PHP Script Anti Flood DDOS #9
Oh Smile
Nice share! Im deffinitly going to try it
Got a question? PM me

Reply

RE: PHP Script Anti Flood DDOS #10
This would only work for HTTP floods, but its stupid anyway. The attack is already reaching your server... By the time it redirects it would be on a new connection anyway. Witch means the script would be executing again...

Reply







Users browsing this thread: 1 Guest(s)