Forum Moderators: open
I have not detected any valid bot or human with an empty UA.Up until a few years ago, Google's faviconbot sent no UA at all. Then, for another year or two, they claimed to be Firefox/6. As it happens, I let everyone have the favicon (it's one way to flag wrongly blocked humans) so it made no difference.
So if bots have empty UA what’s the advantage for them having this?
what’s the advantage for themMost of the time it's just laziness. It's no different from omitting all the usual headers a human browser sends. The person writing the robot's script has to spend an extra few seconds* getting it to send the User-Agent header--or any other header--so why bother.
Can I selectively allow fb bot?Allow or block anything you like. Only you know what benefits your interests.
Can I selectively allow fb bot?Do you mean, is it physically possible? Sure. Exact methods are a question for whichever subforum is concerned with your server type. Unless you're using one of the extremely uncommon ones, in which case you're probably on your own.
a UA of "-"The - is Apache's logging designation for a header that wasn't sent at all. If logs instead said "" (quotation marks with nothing inside them) it would mean the header was sent, but it is empty. To cover all bases, my access-control rules say
173.252.98.22-29 comes in with a UA of "-"As I mentioned above, one of FBs image caching agents uses a blank UA. If you do not allow access from FB IP ranges, you get those embarrassing "Image Not Found" defaults next to your FB posts (or posts with links to your site that other people post.)
173.252.64.0 - 173.252.127.255 CIDR: 173.252.64.0/18
NetName: FACEBOOK-INC
I did block it.