Hi.
I would like to know if there's a smart way to block servers from accessing my domain if I do not know their IP address. What I do know is parts of their host names.
I have mod_security installed. I am familiar with rules like these:
SecRule REQUEST_URI "xyz|abc"
Where "xyz" or "abc" are part of host names I wish to block. But not sure if Request_URI is the host name in mod_sec rules? I thought of this:
SecRule "HTTP_USER_AGENT|HTTP_HOST" "^$"
SecRule HTTP_HOST "xyz|abc"
But I wonder if this works as I want it to. The first line should reject anything that does not come from a valid browser. And the second line should block people connecting from servers related to xyz or abc. Right?