Want more timely Centmin Mod News Updates?
Become a Member

IP Block if user-agent is invalid?

Discussion in 'System Administration' started by Oxide, Mar 23, 2015.

  1. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    12:53 AM
    Hello there.

    I wonder if someone here can learn me how I can IP Block, if the user-agent is invalid?


    currently i am using a bunch of if rules to prevent layer-7 ddos (detecting empty user-agents + wordpress) then i return 444 if they are these... but how can i ip block it so they cant access my server at all after one attempt?