What Moz Bot is and why you might want to block it
Moz Bot is a web crawler owned by Moz, a company that makes SEO (search engine optimization) tools. It visits websites automatically to collect data about links, page structure, and other technical details that Moz uses to power its search ranking tools and reports. If you run a website, Moz Bot may visit your pages without you asking it to, and blocking it means telling it to stop.
You might want to block Moz Bot if your website has limited server resources, if you want to keep your site data private from SEO analysis tools, or if the bot traffic is using bandwidth you need for real visitors. Blocking it does not affect your search rankings on Google or other search engines — it only stops Moz from collecting data about your site.
Key Takeaways
- Moz Bot identifies itself in your server logs as "MozBot" and visits your site to gather SEO data for Moz's tools.
- You can block Moz Bot by adding a rule to your robots.txt file that tells it not to visit your pages.
- Blocking Moz Bot does not affect how Google ranks your site or how search engines index your pages.
- If you use Moz's own tools and services, blocking the bot may prevent Moz from collecting accurate data about your site.
Using robots.txt to block Moz Bot
The simplest way to block Moz Bot is to edit your robots.txt file, a text file that sits in your website's root directory and tells all web crawlers which parts of your site they can and cannot visit. Most web hosting providers let you edit this file through a file manager in your control panel, or you can access it via FTP or SSH if you are comfortable with those tools.
Open your robots.txt file and add these two lines:
User-agent: MozBotDisallow: /
The first line tells the crawler that the rule applies to MozBot specifically. The second line tells it not to visit any page on your site (the forward slash means "everything"). Save the file and upload it back to your server. Moz Bot should stop visiting your site within a few days, though it may take up to a week for the change to take full effect.
If you want to block Moz Bot from only certain folders or pages instead of your entire site, you can replace the forward slash with a specific path. For example, Disallow: /admin/ would block only the admin folder. You can add multiple Disallow lines if you need to block different sections of your site while allowing the bot to visit others.
Blocking through your web server settings
If you cannot or do not want to edit robots.txt, you can block Moz Bot at the server level using your web server's configuration. The method depends on whether you run Apache, Nginx, or another server type — your hosting provider's support team can tell you which one you use.
For Apache servers, you can add rules to a .htaccess file in your root directory to deny requests from Moz Bot based on its user agent string. For Nginx servers, you would add similar rules to your server configuration file. Both approaches require some familiarity with server configuration, so contact your hosting provider if you are unsure how to proceed. This method is more forceful than robots.txt because it actually rejects the bot's requests rather than straightforward asking it to go away, which saves server resources by not even processing the bot's requests.
Checking if Moz Bot is actually visiting your site
Before you block Moz Bot, you may want to confirm that it is actually visiting your site. Check your server access logs — these record every request made to your website. Look for entries that contain "MozBot" in the user agent field. Most hosting control panels let you view access logs through a web interface, or you can read them and search them with a text editor or command-line tool.
If you see very few or no Moz Bot visits, blocking it may not be necessary. If you see hundreds of visits per day and your site has limited bandwidth, blocking it could free up resources for real visitors. You can also use online tools to check whether Moz Bot has visited your site recently by searching your domain in Moz's own index.
What happens after you block Moz Bot
Once you block Moz Bot, Moz's tools will no longer be able to collect fresh data about your site. If you use Moz's own services — such as Moz Pro, Moz Local, or their rank tracking tools — blocking the bot means those tools will show outdated information about your site. If you do not use Moz's services, this has no practical effect on you.
Blocking Moz Bot does not change how Google, Bing, or other search engines see your site. Those search engines use their own crawlers (Googlebot, Bingbot, and others), and blocking Moz Bot does not affect them. Your search rankings and indexing will remain unchanged.
Allowing Moz Bot again if you change your mind
If you decide later that you want Moz Bot to visit your site again, straightforward remove the lines you added to robots.txt or delete the server-level rules you created. The bot will resume visiting your site within a few days. There is no penalty for blocking and unblocking crawlers — search engines do not track or care about your robots.txt rules.
You can also use a more selective approach by removing the blanket block and instead allowing Moz Bot to visit only certain pages while blocking others. This gives you flexibility if you want to share some information with Moz's tools while keeping other parts of your site private.
Frequently Asked Questions
Will blocking Moz Bot hurt my Google search rankings?
No. Google uses its own crawler called Googlebot, which is separate from Moz Bot. Blocking Moz Bot has no effect on how Google indexes your site or ranks it in search results. Only blocking Googlebot itself would affect your Google rankings.
Can I block Moz Bot but allow other SEO tool crawlers?
Yes. Each SEO tool crawler has its own user agent name. You can block specific crawlers by adding separate rules to robots.txt for each one. For example, you could block MozBot but allow Semrush's crawler by listing them separately with different Disallow rules.
How do I know if my robots.txt file is working?
You can test your robots.txt file using Moz's own robots.txt checker tool, or Google's robots.txt tester in Google Search Console. These tools let you enter a URL and see whether a specific crawler is allowed to visit it according to your robots.txt rules.
What if I only want to block Moz Bot from certain pages?
Use the Disallow path to specify which pages to block. For example, Disallow: /private/ blocks only the private folder, while Disallow: /admin/config.php blocks a specific file. You can add multiple Disallow lines to block different sections.