The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Link Explorer
    4. Moz can't crawl domain due to IP Geo redirect loop

    Moz can't crawl domain due to IP Geo redirect loop

    Link Explorer
    2 2 411
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SalvationArmy
      SalvationArmy last edited by

      Hi,

      I'm trying to crawl our domain www.salvationarmy.org.au via my Moz account and it only ever returns results for one page when it should be crawling more than 3,000 pages.

      In talking to support, they have said that because of the redirect we have in place it is creating a 302 loop and therefore not delivering results.  Usually in this case I would obtain Moz's IP addresses and add them to the redirect settings as an exception, but Moz have said they use cloud-based services for crawling so the IPs change all the time.

      Does anyone have any idea how to solve this issue?  At this point I've paid for a year's subscription to a product I can't use.

      Thanks,

      Mel

      1 Reply Last reply Reply Quote 0
      • TomVolpe
        TomVolpe last edited by

        Hi,

        If you have manually set up your geo redirect in your htaccess then you could modify your rules to redirect only if not Moz’s crawler (rogerbot) like this:

        uk redirect

        RewriteCond %{HTTP_USER_AGENT} !=rogerbot

        RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^GB$

        RewriteRule ^(.*)$ http://uk.abcd.com$1 [L]

        Which means both conditions must be satisfied before the redirect happens, the user agent must not be rogerbot, and then it checks the country code. You may have to adjust it a bit depending on your setup but it’s just the same as adding an exception based on IP, so if you could already do that you can set up a user agent condition just as easily.

        If you’re using PHP you could use $_SERVER['HTTP_USER_AGENT'] wrap your geoip function with something like:

        if($_SERVER['HTTP_USER_AGENT'] != 'rogerbot' ){

        You will have to check if it is not empty before you implement it (or work it into your code) as some servers have $_SERVER['HTTP_USER_AGENT'] as not set.

        Thanks, hope that gives you a few ideas to try!

        Tom

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • How can I Disaowe Spammy Links from MOZ Crawling?
          Asifaliiwedewrf
          Asifaliiwedewrf
          0
          3
          45

        • Moz doesn't index my backlink - Why?
          dave.kudera
          dave.kudera
          0
          2
          83

        • Moz crawling doesn't show all of my pages
          samantha.chapman
          samantha.chapman
          1
          4
          226

        • MOZ doesn't work for .dating and .chat domain extensions
          eli.myers
          eli.myers
          1
          2
          108

        • Moz cannot crawl domain. Also OSE does not work properly on this specific domain?
          jorrito
          jorrito
          0
          9
          544

        • Why does OSE redirect to another url when the url you're testing doesn't redirect in your browser?
          Linda-Vassily
          Linda-Vassily
          0
          2
          194

        • Why does the number of the total external links and the followed linking root domains between Open site explorer and the campaign in Moz pro doesn't match?
          DavidLee
          DavidLee
          0
          2
          125

        • How Is a Page Crawled by Moz When Moz Says 'No Links'?
          xerox432
          xerox432
          0
          9
          153

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy