Operated by Majestic
MJ12bot is the crawler for Majestic, a link intelligence tool. It builds a map of the internet for SEO backlink analysis.
MJ12bot is the crawler for Majestic, a link intelligence tool. It builds a map of the internet for SEO backlink analysis.
MJ12bot is a commercial SEO analytics crawler operated by Majestic. It builds backlink graphs, crawls for technical SEO issues, and tracks keyword rankings. The user-agent MJ12bot is well-known and respected in the SEO industry. Blocking it removes your domain from Majestic's index, preventing competitors from analysing your backlink profile via their platform. However, other Majestic users also lose visibility into links pointing TO your site — weigh this trade-off carefully.
<code>User-agent: MJ12bot</code> — Matching is case-insensitive. Robots.txt is fetched from the root of each subdomain separately.
Understanding MJ12bot's purpose helps you decide whether to allow or block it.
MJ12bot. This is the exact string you must use in robots.txt, Nginx, Apache, or Cloudflare firewall rules to target this bot. User-agent matching in robots.txt is case-insensitive, but the string must be spelled correctly. You can verify that a request genuinely comes from MJ12bot by performing a reverse-DNS lookup on the source IP — legitimate bots resolve back to their operator's domain./robots.txt file:
User-agent: MJ12bot Disallow: /This instructs MJ12bot not to crawl any path on your site. The Disallow: / directive covers the entire domain including subfolders. To only block specific sections, replace / with the path (e.g.,
Disallow: /blog/). Note: robots.txt is publicly readable — any bot or human can inspect it at yourdomain.com/robots.txt.MJ12bot (case-insensitive grep: grep -i "MJ12bot" /var/log/nginx/access.log). You can also check Google Search Console → Coverage → Crawl Stats for Googlebot variants. For MJ12bot specifically, filter by user-agent in your log analysis tool (GoAccess, AWStats, etc.).Disallow: / you can restrict MJ12bot to specific paths:
User-agent: MJ12bot Disallow: /private/ Disallow: /staging/ Allow: /This allows MJ12bot everywhere except the listed paths. Path matching in robots.txt uses prefix matching —
Disallow: /private/ blocks /private/page.html but NOT /public/private/.