Skip to main content

Severe attack case via POST /admin/ HTTP/1.1

Comments

7 comments

  • User Avatar
    cPanelAnthony
    Hello! Have you already reached out to your web hosting provider or systems administrator? There wouldn't be any functionality within cPanel to stop these types of attacks. However, the following article might help.
    0
  • User Avatar
    user4629
    Yes I already have. The final question is: How can we block every IP that use POST /admin/ HTTP/1.1 as request and Protocol = http/1.1 any experts?
    0
  • User Avatar
    dalem
    use mod security Warning use at your own risk this may block some legit users #Block requests to admin with no referring URL SecRule REQUEST_METHOD "POST" "deny,status:401,id:5000131,chain,msg:'index.php/admin request blocked, no referer'" SecRule &;HTTP_REFERER "@eq 0"
    0
  • User Avatar
    user4629
    use mod security Warning use at your own risk this may block some legit users #Block requests to admin with no referring URL SecRule REQUEST_METHOD "POST" "deny,status:401,id:5000131,chain,msg:'index.php/admin request blocked, no referer'" SecRule &;HTTP_REFERER "@eq 0"

    Thank you very much for your answer, Can you please explain the id:5000131 how can this be targeted to all accounts for: public_html/admin/
    0
  • User Avatar
    dalem
    that's the ID of the rule you can use any number that's not in use id:5000131
    0
  • User Avatar
    cPanelAnthony
    Thanks for the suggestion @dalem !
    0
  • User Avatar
    brandon7gr
    Just to add something here, since the above didn't worked for me. I have managed to block a huge DDOS attack of POST requests, by adding the following rule in Modsecurity rule (For beginner users, that means that you have to go to Security Center->Modsecurity Tools->Rules List-> Add rule) #Block any HTTP POST request that has no referring URL SecRule &HTTP_REFERER "@eq 0" "deny,status:411,id:88888,chain,msg:'POST is blocked' " SecRule REQUEST_METHOD "POST" (the id:88888 is a random number, you can write any number you want there) (same applies for the variable msg, you can write whatever you want)
    0

Please sign in to leave a comment.