Forum Moderators: open
User-Agent: User-Agent: blahblah Accept-Language: blahblah Some-Other-Header-Name: blahblahI don't currently find any of the latter, but they must once have been part of a widely circulated robot script--common enough to provoke me to block it.
Casual stroll through header logs turns up a fair number of empty User-Agent fields, to which one can only say Meh, screw 'emI do block empty/missing UA fields.
How, if at all, do you distinguish between empty and absent?Can't with the log data offered by most shared environments.
put a character, like a dash, for empty fields so you can tell the difference between an empty field and one not sent.Yes, that's how my logs come out. But when assessing the header with things like mod_setenvif, all you can say is "has a value" or "has no value" (!.); it can't distinguish between empty and absent. Fortunately I've yet to find a situation where it makes a difference.