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. 404 or 503 Malware Content ?

    404 or 503 Malware Content ?

    Technical SEO Issues
    10 3 270
    • 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.
    • Saijo.George
      Saijo.George last edited by

      Hi Folks

      When it comes to malware , if I have a site that uses iframe to show content off 3rd party sites which at times gets infected. Would you recommend 404 or 503 ing those pages with the iframe till the issue is resolved ? ( I am inclined to use 503 .. )

      Then take the 404/503 off and ask for a reindex ( from GWT malware section )

      OR

      Ask for a reindex as soon as the 404/503 goes up. ( I do understand we are asking to index as non existing page , but the malware warning gets removed )


      PS : it makes sense for this business to showcase content using iframe on these special pages . I do understand these are not the best way to go about SEO.

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

        Probably you will not like my answer and you will give me the thumb down but:

        Your main concern should be your visitors. You are displaying on your website content that, as you personally say, "at times" is dangerous to your visitors. Studies show the percentage of internet users that don't have any antivirus software or use outdated/expired software is somewhere around 50-60%. You should care more about your visitors and stop putting them in danger.

        I don't know what content you are iframing on your website, but you should find a more trusted source that doesn't get infected at all.

        1 Reply Last reply Reply Quote 3
        • Dr-Pete
          Dr-Pete last edited by

          I tend to agree with Sorina - in a perfect world, it would be great if you could somehow vet that content and make sure it stays safe for your users (even crawl the sites offline if you need to). What content does the page have around the iFrame (if you can explain it generally without giving away private details)? I'm wondering if these pages should be indexed at all, malware or no, since they're mostly just re-displays of other people's content. META NOINDEX might be a better bet here.

          Saijo.George 1 Reply Last reply Reply Quote 1
          • Saijo.George
            Saijo.George @Dr-Pete last edited by

            Hi Peter

            Thanks for looking in to this.

            We sell templates and themes for various cms and we find that it's great if we can demo the content to users before they purchase them. Our content is created by the community and most of them often add updates to existing content. We find that its best to let our authors host their own files and we link to that content through an iframe.

            At times some of the author's might get hacked / or some of their advertisement gets flagged as malware. We get notified by WMT when google see an malware on these iframed pages.

            1 Reply Last reply Reply Quote 0
            • Dr-Pete
              Dr-Pete last edited by

              Is there any compelling reason to index this content? It's probably going to look thin to Google, at best (since it's mostly a wrapper around an outside site), and the search value is pretty minimal. In other words, it's good for your users and possibly conversion, but it doesn't have much value for search visitors. If the page is really just a wrapper around a demo site, then I'd consider using META NOINDEX on the frameset and just keep those out of your search results completely.

              Saijo.George 1 Reply Last reply Reply Quote 1
              • Saijo.George
                Saijo.George @Dr-Pete last edited by

                Hi Peter

                The content used to be index, but I have added the noindex tag on there ( since I felt the same way about them being indexed as you did )  but we still get the GWT warning about malware from time to time. My initial concern was do I 503 or 404 the page till we fix the malware issue. I think 503 is the best way to go about it.

                1 Reply Last reply Reply Quote 0
                • Dr-Pete
                  Dr-Pete last edited by

                  So, it's not indexed, but you're still get malware warnings? That's odd. Honestly, Google shouldn't even see something in a frame as directly being part of your site, in many cases. If you 404 those pages, you potentially kill them for visitors, too - on the other hand, you probably shouldn't be sending your visitors to frames with malware. If it's just a few, I'd probably 404 them temporarily - it'll protect your rankings and your visitors. I'm honestly not sure if the 503 is going to do much that the NOINDEX isn't doing.

                  Saijo.George 1 Reply Last reply Reply Quote 1
                  • Saijo.George
                    Saijo.George @Dr-Pete last edited by

                    Come to think of it we don't get a lot of malware warning in GWT anymore , I am guessing that is because the framed pages are no longer indexed. ( We could have potentially got the warnings while they were still being de-indexed ?? )

                    I am worried about that since GWT used to warn us about these and if the pages are no longer indexed and Google no longer sends us notification , we might miss these pages with malware. I have to look in to some way of tracking this ( if you have come across any solution I would love to hear more about it ) .

                    Thanks a lot for your help Peter.

                    Serving up malware content to users was never an option. I think .. in our case it makes sense for us to go the 503 route . If anyone is wondering how we plan to handle it :

                    When we see a malware notification on the i-framed pages.

                    • We plan to disable the iframe and send a general page for visitors saying the content is temporarily disabled .
                    • We will send a 503 header response with this page to state that this is a temporary issue. ( for search engines )
                    • Ask the site owner to fix the issue .
                    • Once issue is resolved , remove the 503 and make the framed content live again.

                    This helped me make this decision : https://support.google.com/webmasters/answer/2600719?hl=en&ref_topic=2600715&rd=1

                    Dr-Pete 1 Reply Last reply Reply Quote 0
                    • Dr-Pete
                      Dr-Pete @Saijo.George last edited by

                      Sorry, I realized my comments about the 503 were kind of confusing. A 503 shouldn't serve a page for visitors, either - it's just a matter of 404s sometimes seeming a little more friendly, from the user perspective. It just depends on how you're set up.

                      My only other concern about the 503 is that it's generally intended for short-term use (at least it's been implemented that way). It's great if your site is down for a day and basically tells Google to come back later. If you leave one up for weeks or months, though, I'm honestly not sure what will happen. It's probably going to be treated like a 404, but it also could signal to Google that you have technical problems on the site. So, it may depend on the timeframe. The problem here is that you don't control the malware - it could be weeks before the 3rd party takes action.

                      Saijo.George 1 Reply Last reply Reply Quote 1
                      • Saijo.George
                        Saijo.George @Dr-Pete last edited by

                        Thanks Peter, apologies for the delay was tied downed with some other things. Your help is much appreciated.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • Duplicate content and 404 errors
                          TwoOctobers
                          TwoOctobers
                          0
                          4
                          291

                        • 404 Error Pages being picked up as duplicate content
                          kfallconnect
                          kfallconnect
                          0
                          8
                          676

                        • Thousands of 404-pages, duplicate content pages, temporary redirect
                          posthumus
                          posthumus
                          0
                          4
                          262

                        • Duplicate Content - Different URLs and Content on each
                          HiveDigitalInc
                          HiveDigitalInc
                          0
                          6
                          152

                        • When is Duplicate Content Duplicate Content
                          AMHC
                          AMHC
                          0
                          6
                          169

                        • Duplicate Content Vs No Content
                          MoosaHemani
                          MoosaHemani
                          0
                          7
                          404

                        • 404-like content in webmaster tools
                          idreams
                          idreams
                          0
                          15
                          1.2k

                        • If I 301 re-direct a piece of content (A) to another piece of content (B) and B is unrelated in subject matter to A, will the referring search keywords to content piece A hold for content piece B?
                          pbrothers24
                          pbrothers24
                          0
                          3
                          562

                        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