undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. SEO Tactics
  3. Intermediate & Advanced SEO
  4. Why would our server return a 301 status code when Googlebot visits from one IP, but a 200 from a different IP?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Why would our server return a 301 status code when Googlebot visits from one IP, but a 200 from a different IP?

Intermediate & Advanced SEO
5
16
3.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • danatanseo
    danatanseo last edited by Jun 4, 2014, 1:51 PM

    I have begun a daily process of analyzing a site's Web server log files and have noticed something that seems odd. There are several IP addresses from which Googlebot crawls that our server returns a 301 status code for every request, consistently, day after day. In nearly all cases, these are not URLs that should 301. When Googlebot visits from other IP addresses, the exact same pages are returned with a 200 status code.

    Is this normal? If so, why? If not, why not?

    I am concerned that our server returning an inaccurate status code is interfering with the site being effectively crawled as quickly and as often as it might be if this weren't happening.

    Thanks guys!

    1 Reply Last reply Reply Quote 0
    • danatanseo
      danatanseo @Christy-Correll last edited by Jun 23, 2014, 7:19 PM Jun 23, 2014, 7:19 PM

      Howdie,

      Yes, I believe we got this sorted out. Interestingly, it wasn't any of the suggestions made here causing the 301 status code responses. I posted a thread in Google Webmaster Tools Forum regarding the issue and received a response that I am 99.5% sure is the correct answer.

      Here is a link to that thread for future readers' reference: https://productforums.google.com/forum/#!mydiscussions/webmasters/zOCDAVudxNo

      I believe the underlying issue has to do with incorrect handling of a redirect for this domain:  ccisound.com

      I am currently pursuing getting it corrected with our IT Director. Once the remedy is in place, I should know right away if it solves the issue I am seeing in the server logs. I'll post back here once I am 100% certain that was the issue.

      Thanks all! This has been an interesting one for me!

      1 Reply Last reply Reply Quote 1
      • Christy-Correll
        Christy-Correll Staff last edited by Jun 17, 2014, 6:04 PM Jun 17, 2014, 6:04 PM

        Hi Dana, have you definitively sorted this out?

        danatanseo 1 Reply Last reply Jun 23, 2014, 7:19 PM Reply Quote 0
        • topic:timeago_earlier,12 days
        • danatanseo
          danatanseo @ForForce last edited by Jun 5, 2014, 6:00 PM Jun 5, 2014, 6:00 PM

          They are pretty detailed, I'll send you yesterday's in a zip file so you can take a look. I'm certain that have everything needed. Thanks Eric!

          1 Reply Last reply Reply Quote 0
          • ForForce
            ForForce @William.Lau last edited by Jun 5, 2014, 1:44 PM Jun 5, 2014, 1:44 PM

            Right, a DNS manager could do a redirect, but that would not be visible in the web server log.  It would only be visible in whatever is managing the DNS.

            1 Reply Last reply Reply Quote 0
            • William.Lau
              William.Lau @danatanseo last edited by Jun 5, 2014, 1:23 PM Jun 5, 2014, 1:23 PM

              Depends what kind of DNS manager you are using. A redirect via DNS can still be possible.

              In my experience DNS managing software can redirect users with 301 or 302 headers depending on what settings you have. If your DNS manager has a security protocol along with redirect rules, it could be causing the issue.

              Examples of DNS redirects:

              https://dnsimple.com/url-forwarding-301-redirect

              https://support.cloudflare.com/hc/en-us/articles/200172286-How-do-I-do-url-forwarding-with-CloudFlare-

              ForForce 1 Reply Last reply Jun 5, 2014, 1:44 PM Reply Quote 0
              • ForForce
                ForForce last edited by Jun 5, 2014, 12:53 PM Jun 5, 2014, 12:53 PM

                The request headers will also show if any and what cookies the user may have set.  Which it looks like is how your server determines if it should provide the client the desktop or mobile version.

                1 Reply Last reply Reply Quote 1
                • ForForce
                  ForForce last edited by Jun 5, 2014, 12:52 PM Jun 5, 2014, 12:52 PM

                  How detailed are your log files?  Can you see the user-agent (browser name) Maybe you could ask your IT department to log request headers?  If that will make the log files too big, they can probably do it only for the 'problem' IPs, or only for cases that the webserver returns a 301.  I'll take a look if you like.  Email is in my profile.

                  Best,

                  -Eric

                  danatanseo 1 Reply Last reply Jun 5, 2014, 6:00 PM Reply Quote 1
                  • danatanseo
                    danatanseo @ForForce last edited by Jun 5, 2014, 12:36 PM Jun 5, 2014, 12:36 PM

                    Thanks so much Eric. Yes, I was thinking about the mobile version of our site being related to what I'm seeing too. However, I am unaware that we 301 redirect anything from the main site to the mobile site. In fact, users can actually switch to the mobile site via desktop by clicking "Mobile Site" in the footer and then browse the mobile version of the site via desktop. All of the URLs are identical.

                    Just out of curiosity I browsed to the mobile version of our site, grabbed a URL and then plugged it into "Fetch as Googlebot" in GWT. For all options, including desktop and the three mobile options a status code of 200 was returned.

                    1 Reply Last reply Reply Quote 0
                    • ForForce
                      ForForce last edited by Jun 4, 2014, 8:58 PM Jun 4, 2014, 8:56 PM

                      The problem can't be related to DNS.  If the problem was related to DNS, the request would never make it to your server, and you would never see anything related to the request in your log files.

                      Because you can see it in your log file, it is definitely happening on your own webserver (not some external problem).

                      The requesting IP is probobly not the problem, but it could be if your server automatically adds to a banned list any IP that requests > X pages in Y time - your server might think this is a DOS (denial of service) attack.... But if your server was set up to do this, your IT guys would probobly know about it.  This isn't something that is normally enabled 'out of the box' someone would need to intentionally activate a behavior like that.

                      More likely, is that there is another common denominator besides the requester IP...  I would guess that it's the user agent string (the browser or device the user is using).

                      Taking a quick look at what I think is your site, you have a mobile version available.  Google of course would be interested in what your site looks like to a mobile browser, and would send a 'fake' user agent string pretending to be so (a cell phone or a tablet etc...)  If your server sees this request, and tries to automatically redirect the browser to the mobile version of the site, then you would have your 301 code (which in this case is exactly what you intended, so your all set!)

                      There are probably a few other cases that could cause a 301 for just some IPs, but this is the only one that comes to mind at the moment.

                      Good Luck!

                      danatanseo 1 Reply Last reply Jun 5, 2014, 12:36 PM Reply Quote 1
                      • danatanseo
                        danatanseo @William.Lau last edited by Jun 4, 2014, 8:26 PM Jun 4, 2014, 8:26 PM

                        Here is the response from my IT Director regarding the possibility that this is being done by our DNS manager:

                        "I do not believe so. Our DNS does translation of human readable names to IP address. It has nothing to do with the status being returned to a browser, and even if it did it could not write to the log file."

                        Is this accurate? I understand that the DNS cannot write to the log file, but if the DNS can flag a request to receive a certain status code from the server, then this scenario would still be a possibility.

                        William.Lau 1 Reply Last reply Jun 5, 2014, 1:23 PM Reply Quote 0
                        • danatanseo
                          danatanseo @StreamlineMetrics last edited by Jun 4, 2014, 8:22 PM Jun 4, 2014, 8:22 PM

                          According to our IT Director we have no spam filters, no mod_security module, absolutely nothing on our server to prevent it from being crawled by bot, human or spider from any IP address, including black-listed IPs.

                          To me, other than the obvious (no security is probably not a good idea at all), that means that the 301 status codes being returned because of a problem with server set up.

                          I do have server logs that I'd be willing to share privately with anyone who's willing to take a gander. Don't worry, I won't send you a month's worth. 1-2 days should be plenty.

                          In the meantime I am going to dive in and take a look further. It's entirely possible that IPs from Google are not the only ones receiving nothing but 301 status codes in response to requests.

                          1 Reply Last reply Reply Quote 0
                          • danatanseo
                            danatanseo @William.Lau last edited by Jun 4, 2014, 7:21 PM Jun 4, 2014, 7:21 PM

                            Thanks William. Good suggestion. I am on it! I'll post back here once I know more.

                            1 Reply Last reply Reply Quote 0
                            • William.Lau
                              William.Lau @danatanseo last edited by Jun 4, 2014, 7:13 PM Jun 4, 2014, 7:13 PM

                              I would not be surprised if this was done by your DNS. If you use a DNS manager, they could possibly redirect certain users or IPs based on patterns of visits.

                              I suggest finding out more about any server configurations from the admin and seeing who they use as a DNS provider or manager.

                              danatanseo 2 Replies Last reply Jun 4, 2014, 8:26 PM Reply Quote 1
                              • danatanseo
                                danatanseo @StreamlineMetrics last edited by Jun 4, 2014, 4:55 PM Jun 4, 2014, 4:55 PM

                                Excellent thoughts!  Yes, they are consistently the same IP addresses every time. There are several producing the same phenomenon, so I looked at this one 66.249.79.174

                                According to what I can find online this is definitely Google and the data center is located in Mountain View, California. We are a USA company, so it seems unlikely that it is a country issue. It could be that this IP (and the others like it) are inadvertently being blocked by a spam filter.

                                It doesn't matter the day or time, every time Googlebot attempts to crawl from this IP address our server returns 301 status codes for every request, with no exceptions.

                                I am thinking I need to request a list of IP addresses being blocked by the server's spam filter. I am not a server administrator...would this be something reasonable for me to ask the people who set it up?

                                Is returning a 301 status code the best scenario for handling a bot attempting to disguise itself as googlebot? I would think setting the server up to respond with a 304 would be better? (Sorry, that's kind of a follow-up "side" question)

                                Let me know your thoughts and I'm going to go see if I can find out more about the spam filter.

                                William.Lau 1 Reply Last reply Jun 4, 2014, 7:13 PM Reply Quote 0
                                • StreamlineMetrics
                                  StreamlineMetrics last edited by Jun 4, 2014, 4:14 PM Jun 4, 2014, 4:13 PM

                                  Where are the 301s taking Googlebot on those IP addresses? And are they the same IP addresses every time? Have you narrowed those IP addresses down to any particular datacenter/country? It could be possible there is some configuration with your server that treats IP addresses differently depending on the country... it could also be that the IP addresses getting the 301s are known blacklisted spam IP addresses but are masking themselves as Googlebot so your server's blacklist software is keeping them out. It's really hard to say without looking into the data myself but I'm definitely interested in what you find out.

                                  danatanseo 2 Replies Last reply Jun 4, 2014, 8:22 PM Reply Quote 1
                                  • 1 / 1
                                  1 out of 16
                                  • First post
                                    1/16
                                    Last post

                                  Got a burning SEO question?

                                  Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                                  Start my free trial


                                  Browse Questions

                                  Explore more categories

                                  • Moz Tools

                                    Chat with the community about the Moz tools.

                                  • SEO Tactics

                                    Discuss the SEO process with fellow marketers

                                  • Community

                                    Discuss industry events, jobs, and news!

                                  • Digital Marketing

                                    Chat about tactics outside of SEO

                                  • Research & Trends

                                    Dive into research and trends in the search industry.

                                  • Support

                                    Connect on product support and feature requests.

                                  • See all categories

                                  Related Questions

                                  • MAdeit

                                    Is there any benefit to changing 303 redirects to 301?

                                    A year ago I moved my marketplace website from http to https. I implemented some design changes at the same time, and saw a huge drop in traffic that we have not recovered from. I've been searching for reasons for the organic traffic decline and have noticed that the redirects from http to https URLs are 303 redirects. There's little information available about 303 redirects but most articles say they don't pass link juice. Is it worth changing them to 301 redirects now? Are there risks in making such a change a year later, and is it likely to have any benefits for rankings?

                                    Intermediate & Advanced SEO | Jan 21, 2019, 10:42 AM | MAdeit
                                    0
                                  • lynetteboss

                                    Do I need to add the actual language for meta tags and description for different languages? cited for duplicate content for different language

                                    Hi, I am fairly new to SEO and this community so pardon my questions. We recently launched on our drupal site mandarin language  version for the entire site. And when i do the crawl site, i get duplicate content for the pages that are in mandarin. Is this a problem or can i ignore this? Should i make different page titles for the different languages? Also, for the metatag and descriptions, would it better in the native language for google to search for? thanks in advance.

                                    Intermediate & Advanced SEO | Jul 23, 2017, 11:45 AM | lynetteboss
                                    0
                                  • MartijntenCaat

                                    404 or 410 status code after deleting a real estate listing

                                    Hi there, We manage a website which generates an overview and detailpages of listings for several real estate agents. When these listings have been sold, they are removed from the overview and pages. These listings appear as not found in the crawl error overview in Google Search Console. These pages appear as 404's, would changing this to 410's solve this problem? And if not, what fix could take care of this problem?

                                    Intermediate & Advanced SEO | Oct 30, 2016, 2:48 PM | MartijntenCaat
                                    0
                                  • viatrading1

                                    Several 301 Redirects to Same Page

                                    Hi, I have 3 Pages we won't use anymore in our website. Let's call them url A, url B and url C. To keep their SEO strength on our domain, I've though about redirecting all of them to url D. For what I understand, when 301 redirecting, about 85-90% of the link SEO juice is passed. Then, if I redirect 3 URLs to the same page... does url D receive all the link SEO juices for URLs added up? (approximately)
                                    e.g. future url D juice = 100% current url D juice + 85% url A juice + 85% url B juice + 85% url C juice Is this the best practice, or is there a better way? Cheers,

                                    Intermediate & Advanced SEO | Oct 14, 2015, 12:28 AM | viatrading1
                                    0
                                  • shloy23-294584

                                    SEO impact difference between a URL Rewrite and 301 redirect

                                    Hi guys and girls! Just putting a new site live, we changed the URL from one thing to another and I created a 301 file redirecting the urls like for like. The developer installing it has created a different file with columns like: RewriteRule ^page/ http://www.site/page [R=301,L] RewriteRule ^/page/ http://www.site/page [R=301,L] What's the difference? The page redirects but is there a difference between the 301 redirect and this URL rewrite in terms of SEO and link value?

                                    Intermediate & Advanced SEO | Oct 16, 2014, 12:52 PM | shloy23-294584
                                    0
                                  • ajarad

                                    Geoip redirection, 301 or 302?

                                    Hello all Let me first try to explain what our company does and what it is trying to achieve. Our company has an online store, sells products for 3 different countries, and two languages for each country. Currently we have one site, which is open to all countries, what we are trying to achieve is make 3 different stores for these 3 different countries, so we can have a better control over the prices in each country. We are going to use Geoip to redirect the user to the local store in his country. The suggested new structure is to add sub-folders as following: www.example.com/ca-en
                                    www.example.com/ca-fr
                                    www.example.com/us-en
                                    ... If a visitor is located outside these 3 countries, then she'll be redirected to the root directory www.example.com/en We can't offer to expand our SEO team to optimize new pages for the local market, it's not the priority for now, the main objective now is to be able to control the prices for different market. so to eliminate the duplicate issue, we'll use canonical tags. Now knowing our objective from the new URL structure, I have two questions: 1- which redirect should we use? 301, 302? 
                                    If we choose 301, then which version of the site will get the link juice? (i.e, /ca-en or /us-en?)
                                    if we choose 302, then will the link juice remain in the original links? is it healthy to use 302 for long term redirections? 2- Knowing that Google bots comes from US-IP, does that mean that the other versions of the site won't be crawled (i.e, www.example.com/ca-fr), this is especially important for us as we are using AdWords, and unindexed pages will effect our quality score badly. I'd like to know if you have other account structure in your mind that would be better than this proposed structure. Your help is highly highly appreciated.
                                    Thanks in advance.

                                    Intermediate & Advanced SEO | Nov 18, 2013, 9:59 PM | ajarad
                                    0
                                  • BeytzNet

                                    Is it allowed to have different alt on same image on different pages?

                                    Hi, I have images that match several different keywords and I wondered if I can give them different alts based on the page that they are displayed or will Google be angry with me? Thanks

                                    Intermediate & Advanced SEO | Oct 26, 2012, 8:58 AM | BeytzNet
                                    0
                                  • CommercePundit

                                    How to stop Google crawling after 301 redirect?

                                    I have removed all pages from my old website and set 301 redirect to new website. But, I have verified old website with Google webmaster tools' HTML verification file which enable me to track all data and existence of pages in Google search for my old website. I was assumed that, Google will stop crawling and DE-indexed all pages after 301 redirect. Because, I have set 301 redirect before 3 months. Now, I'm able to see Google bot activity on my website with help of Google webmaster tools. You can find out attachment to know more about it. How can it possible & How Google can crawl removed pages? You can see following image to know more about it. First & Second

                                    Intermediate & Advanced SEO | Jul 19, 2012, 12:40 PM | CommercePundit
                                    0

                                  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
                                  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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                                  • Accessibility
                                  • Terms of Use
                                  • Privacy

                                  Looks like your connection to Moz was lost, please wait while we try to reconnect.