BotBouncer / AI bots / FacebookBot
FacebookBot
Meta, a training and dataset crawler
- Operator
- Meta
- Type
- Model training and datasets
- Sent as a user agent
- Not confirmed
- Follows robots.txt
- Not confirmed
- Details
- Not yet checked against the operator's own documentation
What it does
Listed by many sites as a Meta crawler. Not confirmed in Meta's own documentation here.
We have not yet checked this page against Meta's own documentation. Check it before you rely on it.
Block it in robots.txt
User-agent: FacebookBot Disallow: /
To allow it again, remove those lines or use Allow: /. Rules for other bots are not affected.
Block it on your server
robots.txt is a request. To enforce the block, filter the user agent on your server.
Nginx
map $http_user_agent $blocked_bot {
default 0;
~*(FacebookBot) 1;
}
# inside server { }
if ($blocked_bot) { return 403; }Apache (.htaccess)
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} FacebookBot [NC]
RewriteRule ^ - [F,L]Cloudflare custom rule (action: Block)
(lower(http.user_agent) contains "facebookbot")
Source
No official documentation link has been confirmed yet.