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. Technical SEO Issues
    4. Protecting sitemaps - Good idea or humbug?

    Protecting sitemaps - Good idea or humbug?

    Technical SEO Issues
    4 3 40
    • 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.
    • Roverandom
      Roverandom last edited by

      Is there a way to protect your sitemap.xml so that only Google can read it and would it make sense to do this?

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

        Hi Thomas;

        You have not specified your web server platform, but assuming it is Apache it would be easy to do with a regular expression in your .htaccess

        However, I do not see any valid reason for doing so.  Your sitemap should be a refection of your public menu and internal public links.  So other than making it easier for search and other spiders to crawl your site, it does not expose any information that is not available by other methods.  So, best practices say that you should have an accurate site map, and unless you have a reson for hiding it that you did not mention I would not hide it.

        I will tell you those that you should not bother putting areas you do not want crawled in your robots.txt file and any of the bad folks will not respect the request.

        Take care,

        Herb

        1 Reply Last reply Reply Quote 1
        • Roverandom
          Roverandom last edited by

          Hi Herb,

          Thank you for your feedback. I think you are right. We are dealing with very  short lived up-to-date information so it is vital that as few sites as possible have the information we have. For this reason I was considering to "hide" our sitemaps. Some of our competitors do that but probably we need to find some other measures to achieve our goal.

          Cheers
          Thomas

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

            From a hacker's perspective, the first order of business is going to be gathering information on the target. does a hacker or someone with malicious intent gain something in obtaining access to your sitemap?

            Yes, they do, and that is more information on the layout of your site. How common would there actually be something on the sitemap that could critically expose you to compromise on your VPS/Shared hosting? Um, probably super ultra rare.

            But yes there was one time that I was doing an audit for a company and the sitemap did point to a directory that was vulnerable to directory browsing. Fishing around in the directory, I was able to obtain a picture of a PayPal MasterCard front and back because some idiot snapped pictures of it and uploaded it onto the site.

            So there are benefits to hiding it, it's relatively easy to do, but if your lazy and don't want to, chances are your good.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Hello folks :)...Is pop-up a good idea for city selection from SEO perspective?
              Nigel_Carr
              Nigel_Carr
              0
              3
              44

            • Phone number in Meta Description - Is it a good idea?
              SamuelScott
              SamuelScott
              0
              2
              5.6k

            • Is it a good idea to use an old domain name for a new product
              gazzerman1
              gazzerman1
              0
              2
              201

            • Is it a good idea to use the rel canonical tag to refer to the original source?
              Searchresult
              Searchresult
              0
              5
              192

            • Using Sitemap Generator - Good/Bad?
              Khem_Raj7
              Khem_Raj7
              0
              4
              680

            • How to put news on your site from other sources and is it a good idea
              RobertFisher
              RobertFisher
              0
              5
              499

            • Are sub domain names a good idea
              RyanKent
              RyanKent
              0
              4
              3.0k

            • No Following Existing Non-SEO Pages A Good Idea?
              RyanKent
              RyanKent
              0
              3
              797

            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