What Moz Bot is and why you might block it

Moz Bot is a web crawler operated by Moz, a software company that tracks search engine rankings and analyzes website performance. It visits websites automatically to collect data about pages, links, and content — information Moz uses to power its SEO tools and reports.

You might want to block Moz Bot if you run a private website, a staging environment, or a site where you don't want external analysis tools collecting data. Blocking it won't affect your Google rankings or search visibility, since Moz Bot is separate from Google's crawler. It simply prevents Moz from gathering information about your site for its own database.

Moz Bot identifies itself by its user agent string, which means you can target it specifically without blocking legitimate visitors or other crawlers you want to allow.

Key Takeaways

  • Moz Bot can be blocked using your site's robots.txt file by adding a disallow rule for the Moz user agent.
  • The exact user agent string to block is "MozBot" or "Mozilla/5.0 (compatible; MozBot/1.0)," depending on which version you encounter.
  • Blocking Moz Bot does not affect your search engine rankings or visibility in Google, Bing, or other search engines.
  • If you use Moz's own SEO tools, blocking Moz Bot will prevent those tools from analyzing your site accurately.

Blocking Moz Bot using robots.txt

The most common way to block Moz Bot is by editing your site's robots.txt file. This is a plain text file that sits in your website's root directory and tells all crawlers which parts of your site they can and cannot visit.

Open your robots.txt file (or create one if you don't have one) and add these lines:

User-agent: MozBotDisallow: /

This tells Moz Bot it cannot crawl any part of your site. The forward slash (/) means "everything." If you want to block Moz Bot from only certain folders or pages, replace the / with the specific path — for example, Disallow: /admin/ would block only your admin folder.

After you save the file, Moz Bot should stop crawling your site within a few days. The change takes effect gradually as the bot encounters your updated robots.txt on its next visit.

Using .htaccess to block by IP address

If you use an Apache web server, you can block Moz Bot by its IP address using an .htaccess file. This method is more aggressive than robots.txt because it blocks the bot at the server level, not just by request.

Moz publishes the IP ranges its crawlers use. You can add rules to your .htaccess file to deny requests from those ranges. A typical rule looks like this:

deny from 192.0.2.0/24

You would need to add multiple rules for each IP range Moz Bot uses. This approach requires more technical setup than robots.txt, and you'll need to update the rules if Moz changes its IP addresses. For most sites, robots.txt is simpler and sufficient.

Blocking through your hosting control panel

Many hosting providers offer built-in tools to block specific crawlers or user agents without editing files directly. If you use cPanel, Plesk, or another control panel, look for a section called "Hotlink Protection," "IP Blocker," or "User Agent Blocker."

The exact steps depend on your hosting provider. Some panels let you paste a user agent string and block it immediately. Others require you to know the IP address. Contact your hosting support if you're unsure where this feature is located in your specific panel.

This method is useful if you're not comfortable editing files directly, though the result is the same as using robots.txt or .htaccess.

Blocking Moz Bot in WordPress

If your site runs WordPress, you can block Moz Bot through your site settings without touching any files. Go to Settings > Reading in your WordPress dashboard and look for the option "Discourage search engines from indexing this site." This setting affects all crawlers, not just Moz Bot.

For more granular control, use a plugin like Wordfence or All In One WP Security. These plugins have built-in options to block specific user agents. Search your plugin library for "user agent blocker" or "bot blocker" to find options that work with your WordPress version.

If you only want to block Moz Bot and allow other crawlers, editing robots.txt directly is still the most precise method. WordPress sites can access robots.txt through Settings > Reading > Search Engine Visibility or by editing the file in your root directory.

Checking if Moz Bot is actually visiting your site

Before you block Moz Bot, you might want to confirm it's actually crawling your site. Check your server logs or use a tool like Google Analytics to see which bots are visiting.

In your web server logs, look for requests with the user agent string "MozBot" or "Mozilla/5.0 (compatible; MozBot/1.0)". If you see these entries, Moz Bot is active on your site. If you don't see them, blocking it won't change anything — though adding the block to robots.txt is still harmless and prevents future visits.

You can also check Moz's official documentation, which lists the exact user agent strings and IP ranges their crawlers use. This helps you distinguish Moz Bot from other crawlers that might have similar names.

What happens after you block Moz Bot

Once you block Moz Bot, it will no longer collect data about your site. If you use Moz's SEO tools or have a Moz account that tracks your site's performance, those reports will become incomplete or stop updating. Moz won't be able to show you your rankings, backlinks, or other metrics it normally gathers.

Blocking Moz Bot does not affect your visibility in Google, Bing, or other search engines. Those search engines use their own crawlers, which are separate from Moz Bot. Your site will continue to appear in search results normally.

If you later decide you want Moz Bot to crawl your site again, simply remove the disallow rule from robots.txt or delete the .htaccess rule. Moz Bot will resume crawling within a few days.

Frequently Asked Questions

Will blocking Moz Bot hurt my Google rankings?

No. Moz Bot is a separate crawler from Google's bot. Blocking Moz Bot only prevents Moz from collecting data about your site — it has no effect on how Google crawls, indexes, or ranks your pages.

Can I block Moz Bot but allow other crawlers?

Yes. By using the specific user agent string "MozBot" in your robots.txt file, you block only Moz Bot while allowing Googlebot, Bingbot, and other crawlers to visit normally. This is the advantage of robots.txt over IP-based blocking.

What's the difference between robots.txt and .htaccess blocking?

robots.txt is a polite request that crawlers can choose to ignore. .htaccess blocks at the server level, so the bot cannot access your site at all. For most sites, robots.txt is sufficient and easier to manage.

How long does it take for Moz Bot to stop crawling after I block it?

Usually a few days to a week. Moz Bot will see your updated robots.txt the next time it visits your site and will stop crawling. The exact timing depends on how frequently Moz Bot checks your site.

Can I block Moz Bot from only certain pages or folders?

Yes. Instead of using Disallow: /, specify the path you want to block — for example, Disallow: /private/ blocks only your private folder while allowing Moz Bot to crawl the rest of your site.