I have what seems to be a pretty good idea, I want to create a scenario where if the cpu usage is high(ussually happens during a DDos attack) then the site will die and display an html page.
I hope you can follow the attempts I've already made.It would be a mile long to display each step so please trust that I have reached my limit of knowledge and time.
Coding parts easy.
Its the getting it to read from the server loggs to tell either how many connections are made to the current site OR how high the cpu usage is, now I need to throw one of these into a variable, but I cant figure out how to call it from cpanel, Ive managed to make a script using mysql database, threads allowed verses threads connected. This is not accurate enough as not ALL sites use a database but all nuke sites do and nuke sites are what seem to be a Primary target.
Ive also developed a flood blocker using cookies but apparently DDos bots do not use cookies and therefore cookies cannot be whats used to stop them, so that leaves me with one option, Let the server tell me how many connections are made.
It runs on php_safe_mode and therefore the schell command `top` will not work either.
As I've spent 3 days searching. every part of the net I could find.
Any ideas?
I hope you can follow the attempts I've already made.It would be a mile long to display each step so please trust that I have reached my limit of knowledge and time.
Coding parts easy.
Its the getting it to read from the server loggs to tell either how many connections are made to the current site OR how high the cpu usage is, now I need to throw one of these into a variable, but I cant figure out how to call it from cpanel, Ive managed to make a script using mysql database, threads allowed verses threads connected. This is not accurate enough as not ALL sites use a database but all nuke sites do and nuke sites are what seem to be a Primary target.
Ive also developed a flood blocker using cookies but apparently DDos bots do not use cookies and therefore cookies cannot be whats used to stop them, so that leaves me with one option, Let the server tell me how many connections are made.
It runs on php_safe_mode and therefore the schell command `top` will not work either.
As I've spent 3 days searching. every part of the net I could find.
Any ideas?
Last edited: