• majorAlexa

        See all notifications

        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
          • MozCon
          • Webinars, Whitepapers, & Guides
        • Blog
        • Why Moz
          • Digital Marketers
          • Agency Solutions
          • Enterprise Solutions
          • Small Business Solutions
          • 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.

          Let your business shine with Listings AI
          Moz Local

          Let your business shine with Listings AI

          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.

          • MozCon

            Save on Early Bird tickets and join us in London or New York City

          Unlock flexible pricing & new endpoints
          Moz API

          Unlock flexible pricing & new endpoints

          Find your plan
        • Blog
        • Why Moz
          • Digital Marketers

            Simplify SEO tasks to save time and grow your traffic.

          • 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.

          • 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
        • 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. Home
        2. SEO Tactics
        3. Intermediate & Advanced SEO
        4. Regular Expressions for Filtering BOT Traffic?

        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.

        Regular Expressions for Filtering BOT Traffic?

        Intermediate & Advanced SEO
        3
        17
        3429
        Loading More Posts
        • Watching

          Notify me of new replies.
          Show question in unread.

        • Not Watching

          Do not notify me of new replies.
          Show question in unread if category is not ignored.

        • Ignoring

          Do not notify me of new replies.
          Do not show question in unread.

        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as question
        Locked
        This topic has been deleted. Only users with question management privileges can see it.
        • AWCthreads
          AWCthreads last edited by

          I've set up a filter to remove bot traffic from Analytics. I relied on regular expressions posted in an article that eliminates what appears to be most of them.

          However, there are other bots I would like to filter but I'm having a hard time determining the regular expressions for them.

          How do I determine what the regular expression is for additional bots so I can apply them to the filter?

          I read an Analytics "how to" but its over my head and I'm hoping for some "dumbed down" guidance. 🙂

          1 Reply Last reply Reply Quote 1
          • Chris_CM
            Chris_CM @AWCthreads last edited by

            No problem, feel free to reach out if you have any other RegEx related questions.

            Regards,

            Chris

            1 Reply Last reply Reply Quote 1
            • AWCthreads
              AWCthreads @Chris_CM last edited by

              I will definitely do that for Rackspace bots, Chris.

              Thank you for taking the time to walk me through this and tweak my filter.

              I'll give the site you posted a visit.

              Chris_CM 1 Reply Last reply Reply Quote 0
              • Chris_CM
                Chris_CM @AWCthreads last edited by

                If you copy and paste my RegEx, it will filter out the rackspace bots.  If you want to learn more about Regular Expressions, here is a site that explains them very well, though it may not be quite kindergarten speak.

                AWCthreads 1 Reply Last reply Reply Quote 1
                • AWCthreads
                  AWCthreads @Chris_CM last edited by

                  Crap.

                  Well, I guess the vernacular is what I need to know.

                  Knowing what to put where is the trick isn't it? Is there a dummies guide somewhere that spells this out in kindergarten speak?

                  I could really see myself botching this filtering business.

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

                    Not unless there's a . after the word servers in the name.  The . is escaping the . at the end of stumbleupon inc.

                    AWCthreads 1 Reply Last reply Reply Quote 1
                    • AWCthreads
                      AWCthreads @Chris_CM last edited by

                      Does it need the . before the )

                      1 Reply Last reply Reply Quote 0
                      • Chris_CM
                        Chris_CM @AWCthreads last edited by

                        Ok, try this:

                        ^(microsoft corp|inktomi corporation|yahoo! inc.|google inc.|stumbleupon inc.|rackspace cloud servers)$|gomez

                        Just added rackspace as another match, it should work if the name is exactly right.

                        Hope this helps,

                        Chris

                        AWCthreads 1 Reply Last reply Reply Quote 1
                        • SErOb
                          SErOb @Chris_CM last edited by

                          Agreed! That's why I suggest using it in combination with the variables you mentioned above.

                          1 Reply Last reply Reply Quote 0
                          • AWCthreads
                            AWCthreads @Chris_CM last edited by

                            rackspace cloud servers

                            Maybe my problem is I'm not looking in the right place.

                            I'm in audience>technology>network and the column shows "service provider."

                            Chris_CM 1 Reply Last reply Reply Quote 0
                            • Chris_CM
                              Chris_CM @AWCthreads last edited by

                              How is it titled in the ISP report exactly?

                              AWCthreads 1 Reply Last reply Reply Quote 0
                              • AWCthreads
                                AWCthreads @Chris_CM last edited by

                                For example,

                                Since I implemented the filter four days ago, rackspace cloud servers have visited my site 848 times, , visited 1 page each time, spent 0 seconds on the page and bounced 100% of the time.

                                What is the reg expression for rackspace?

                                Chris_CM 1 Reply Last reply Reply Quote 0
                                • Chris_CM
                                  Chris_CM @SErOb last edited by

                                  Time on page can be a tricky one because sometimes actual visits can record 00:00:00 due to the way it is measured.  I'd recommend using other factors like the ones I mentioned above.

                                  SErOb 1 Reply Last reply Reply Quote 0
                                  • SErOb
                                    SErOb @Chris_CM last edited by

                                    "...a combination of operating system, location, and some other factors can do the trick."

                                    Yep, combined with those, look for "Avg. Time on Page = 00:00:00"

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

                                      Ok, can you provide some information on the bots that are getting through this that you want to sort out? If they are able to be filtered through the ISP organization as the ones in your current RegEx, you can simply add them to the list: (microsoft corp| ...       ... |stumbleupon inc.|ispnamefromyourbots|ispname2|etc.)$|gomez

                                      Otherwise, you might need to get creative and find another way to isolate them (a combination of operating system, location, and some other factors can do the trick).  When adding to the list, make sure to escape special characters like . or / by using a \ before them, or else your RegEx will fail.

                                      SErOb AWCthreads 2 Replies Last reply Reply Quote 1
                                      • AWCthreads
                                        AWCthreads @Chris_CM last edited by

                                        Sure. Here's the post for filtering the bots.

                                        Here's the reg x posted:  ^(microsoft corp|inktomi corporation|yahoo! inc.|google inc.|stumbleupon inc.)$|gomez

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

                                          If you give me an idea of how you are isolating the bots I might be able to help come up with a RegEx for you.  What is the RegEx you have in place to sort out the other bots?

                                          Regards,

                                          Chris

                                          AWCthreads 1 Reply Last reply Reply Quote 1
                                          • 1 / 1
                                          • First post
                                            Last post

                                          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

                                          • thpchlk

                                            How to handle sorting, filtering, and pagination in ecommerce? Canonical is enough?

                                            Hello, after reading various articles and watching several videos I'm still not sure how to handle faceted navigation (sorting/filtering) and pagination on my ecommerce site. Current indexation status: The number of "real" pages (from my sitemap) - 2.000 pages Google Search Console (Valid) - 8.000 pages Google Search Console (Excluded) - 44.000 pages Additional info: Vast majority of those 50k additional pages (44 + 8 - 2) are pages created by sorting, filtering and pagination. Example of how the URL changes while applying filters/sorting: example.com/category --> example.com/category/1/default/1/pricefrom/100 Every additional page is canonicalized properly, yet as you can see 6k is still indexed. When I enter site:example.com/category in Google it returns at least several results (in most of the cases the main page is on the 1st position). In Google Analytics I can see than ~1.5% of Google traffic comes to the sorted/filtered pages. The number of pages indexed daily (from GSC stats) - 3.000 And so I have a few questions: Is it ok to have those additional pages indexed or will the "real" pages rank higher if those additional would not be indexed? If it's better not to have them indexed should I add "noindex" to sorting/filtering links or add eg. Disallow: /default/ in robots.txt? Or perhaps add "noindex, nofollow" to the links? Google would have then 50k pages less to crawl but perhaps it'd somehow impact my rankings in a negative way? As sorting/filtering is not based on URL parameters I can't add it in GSC. Is there another way of doing that for this filtering/sorting url structure? Thanks in advance, Andrew

                                            Intermediate & Advanced SEO | | thpchlk
                                            0
                                          • placementLabs

                                            How can I stop spam Google Organic traffic?

                                            Hey Moz, I'm a rather experienced SEO who just encountered a problem I have never faced. I am hoping to get some advice or be pointed in the right direction. I just started work for a new client. Really great client and website. Nicer than most design/content. They will need some rel canonical work but that is not the issue here. The traffic looked great at first glance 131k visits in April. Google Analytics Acquisition Overview showed 94% of the traffic as organic. When I dug deeper and looked at the organic source I saw that Google was 99.9% of it. Normal enough. Then I looked at the time on site and my jaw dropped. 118,454 Organic New Users for Google only stayed on the site for 3 seconds. There is no way that the traffic is real. It does not match what Google Webmaster tools, Moz, and Ahrefs are telling me. How do I stop a service that is sending fake organic Google traffic?

                                            Intermediate & Advanced SEO | | placementLabs
                                            0
                                          • bizzer

                                            Does blocking foreign country IP traffic to site, hurt my SEO / US Google rankings?

                                            I have a website is is only of interest to US visitors.  99% (at least) of Adsense income is from the US.  But I'm getting constant attempts by hackers to login to my admin account.  I have countermeasures fo combat that and am initiating others. But here's my question: I am considering not allowing any non US, or at least any non-North American, traffic to the site via a Wordpress plugin that does this.  I know it will not affect my business negatively, directly.  However, are there any ramifications of the Google bots of these blocked countries not being able to access my site?  Does it affect the rankings of my site in the US Google searches. At the very least I could block China, Russia and some eastern European countries.

                                            Intermediate & Advanced SEO | | bizzer
                                            0
                                          • damienthivolle

                                            Subdomains vs directories on existing website with good search traffic

                                            Hello everyone, I operate a website called Icy Veins (www.icy-veins.com), which gives gaming advice for World of Warcraft and Hearthstone, two titles from Blizzard Entertainment. Up until recently, we had articles for both games on the main subdomain (www.icy-veins.com), without a directory structure. The articles for World of Warcraft ended in -wow and those for Hearthstone ended in -hearthstone and that was it. We are planning to cover more games from Blizzard entertainment soon, so we hired a SEO consultant to figure out whether we should use directories (www.icy-veins.com/wow/, www.icy-veins.com/hearthstone/, etc.) or subdomains (www.icy-veins.com, wow.icy-veins.com, hearthstone.icy-veins.com). For a number of reason, the consultant was adamant that subdomains was the way to go. So, I implemented subdomains and I have 301-redirects from all the old URLs to the new ones, and after 2 weeks, the amount of search traffic we get has been slowly decreasing, as the new URLs were getting index. Now, we are getting about 20%-25% less search traffic. For example, the week before the subdomains went live we received 900,000 visits from search engines (11-17 May). This week, we only received 700,000 visits. All our new URLs are indexed, but they rank slightly lower than the old URLs used to, so I was wondering if this was something that was to be expected and that will improve in time or if I should just go for subdomains. Thank you in advance.

                                            Intermediate & Advanced SEO | | damienthivolle
                                            0
                                          • Mark_Ch

                                            Will redirecting poor traffic web pages increase web presence

                                            A number of pages on my site have low traffic metrics. I intend to redirect poor performing pages to the most appropriate page with high traffic. Example
                                            www.sampledomomain.co.uk/low-traffic-greyshoes
                                            www.sampledomomain.co.uk/low-traffic-greenshoes
                                            www.sampledomomain.co.uk/low-traffic-redshoes all of the above will be redirected to the following page:
                                            www.sampledomomain.co.uk/high-traffic-blackshoes Question
                                            Will carrying out htaccess redirects from the above example influence to web positioning of both www.sampledomomain.co.uk/high-traffic-blackshoes and www.sampledomomain.co.uk Regards Mark

                                            Intermediate & Advanced SEO | | Mark_Ch
                                            0
                                          • DA2013

                                            Best way to implement canonical tags on an ecommerce site with many filter options?

                                            What would be the best way to add canonical tags to an ecommerce site with many filter options, for example, http://teacherexpress.scholastic.com? Should I include a canonical tag for all filter options under a category even though the pages don't have the same content? Thanks for reading!

                                            Intermediate & Advanced SEO | | DA2013
                                            0
                                          • Silkstream

                                            Problems with ecommerce filters causing duplicate content.

                                            We have an ecommerce website with 700 pages. Due to the implementation of filters, we are seeing upto 11,000 pages being indexed where the filter tag is apphended to the URL. This is causing duplicate content issues across the site. We tried adding "nofollow" to all the filters, we have also tried adding canonical tags, which it seems are being ignored. So how can we fix this? We are now toying with 2 other ideas to fix this issue; adding "no index" to all filtered pages making the filters uncrawble using javascript Has anyone else encountered this issue? If so what did you do to combat this and was it successful?

                                            Intermediate & Advanced SEO | | Silkstream
                                            0
                                          • boxcarpress

                                            Url structure for multiple search filters applied to products

                                            We have a product catalog with several hundred similar products. Our list of products allows you apply filters to hone your search, so that in fact there are over 150,000 different individual searches you could come up with on this page. Some of these searches are relevant to our SEO strategy, but most are not. Right now (for the most part) we save the state of each search with the fragment of the URL, or in other words in a way that isn't indexed by the search engines. The URL (without hashes) ranks very well in Google for our one main keyword. At the moment, Google doesn't recognize the variety of content possible on this page. An example is: http://www.example.com/main-keyword.html#style=vintage&color=blue&season=spring We're moving towards a more indexable URL structure and one that could potentially save the state of all 150,000 searches in a way that Google could read. An example would be: http://www.example.com/main-keyword/vintage/blue/spring/ I worry, though, that giving so many options in our URL will confuse Google and make a lot of duplicate content. After all, we only have a few hundred products and inevitably many of the searches will look pretty similar. Also, I worry about losing ground on the main http://www.example.com/main-keyword.html page, when it's ranking so well at the moment. So I guess the questions are: Is there such a think as having URLs be too specific? Should we noindex or set rel=canonical on the pages whose keywords are nested too deep? Will our main keyword's page suffer when it has to share all the inbound links with these other, more specific searches?

                                            Intermediate & Advanced SEO | | boxcarpress
                                            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
                                          • 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 - 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.