What information should I register if I discover that my site has been attacked?

In the code below, if I get into the operator if, I can say with confidence that my site is under attack. What information is a good idea for registration?
Any recommendations on actions that can be taken to minimize the damage at this stage?

protected void btn_Search_Click(object sender, EventArgs e)
{
   if(tb_SearchBox.Text.Length > tb_SearchBox.MaxLength)
   {
      //What should i log?
      //What actions should I take?
   }
   //Otherwise search
}
+3
source share
3 answers

For action, I simply redirect them to the error page.

, @The Rook . , ELMAH. ELMAH HTTP-, IP- .

+1

ip log . , ip

+1

-, Mod_Security , HTTP- IP-.

+1

Source: https://habr.com/ru/post/1738345/


All Articles