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

    Track AI Overviews in Keyword Research
    Moz Pro

    Track AI Overviews in Keyword Research

    Try it free!
  • 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
  • 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
3.5k
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.
  • AWCthreads
    AWCthreads last edited by Sep 30, 2013, 12:15 PM

    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 Sep 30, 2013, 6:14 PM Sep 30, 2013, 6:14 PM

      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 Sep 30, 2013, 6:06 PM Sep 30, 2013, 6:06 PM

        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 Sep 30, 2013, 6:14 PM Reply Quote 0
        • Chris_CM
          Chris_CM @AWCthreads last edited by Sep 30, 2013, 6:07 PM Sep 30, 2013, 6:03 PM

          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 Sep 30, 2013, 6:06 PM Reply Quote 1
          • AWCthreads
            AWCthreads @Chris_CM last edited by Sep 30, 2013, 5:56 PM Sep 30, 2013, 5:56 PM

            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 Sep 30, 2013, 6:03 PM Reply Quote 0
            • Chris_CM
              Chris_CM last edited by Sep 30, 2013, 6:08 PM Sep 30, 2013, 5:51 PM

              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 Sep 30, 2013, 5:56 PM Reply Quote 1
              • AWCthreads
                AWCthreads @Chris_CM last edited by Sep 30, 2013, 5:49 PM Sep 30, 2013, 5:49 PM

                Does it need the . before the )

                1 Reply Last reply Reply Quote 0
                • Chris_CM
                  Chris_CM @AWCthreads last edited by Sep 30, 2013, 6:07 PM Sep 30, 2013, 5:45 PM

                  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 Sep 30, 2013, 5:49 PM Reply Quote 1
                  • SErOb
                    SErOb @Chris_CM last edited by Sep 30, 2013, 5:45 PM Sep 30, 2013, 5:45 PM

                    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 Sep 30, 2013, 5:46 PM Sep 30, 2013, 5:42 PM

                      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 Sep 30, 2013, 5:45 PM Reply Quote 0
                      • Chris_CM
                        Chris_CM @AWCthreads last edited by Sep 30, 2013, 5:40 PM Sep 30, 2013, 5:40 PM

                        How is it titled in the ISP report exactly?

                        AWCthreads 1 Reply Last reply Sep 30, 2013, 5:42 PM Reply Quote 0
                        • AWCthreads
                          AWCthreads @Chris_CM last edited by Sep 30, 2013, 5:40 PM Sep 30, 2013, 5:38 PM

                          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 Sep 30, 2013, 5:40 PM Reply Quote 0
                          • Chris_CM
                            Chris_CM @SErOb last edited by Sep 30, 2013, 5:38 PM Sep 30, 2013, 5:38 PM

                            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 Sep 30, 2013, 5:45 PM Reply Quote 0
                            • SErOb
                              SErOb @Chris_CM last edited by Sep 30, 2013, 5:35 PM Sep 30, 2013, 5:35 PM

                              "...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 Sep 30, 2013, 5:38 PM Reply Quote 1
                              • Chris_CM
                                Chris_CM last edited by Sep 30, 2013, 5:26 PM Sep 30, 2013, 5:22 PM

                                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 Sep 30, 2013, 5:38 PM Reply Quote 1
                                • AWCthreads
                                  AWCthreads @Chris_CM last edited by Sep 30, 2013, 5:02 PM Sep 30, 2013, 5:02 PM

                                  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 Sep 30, 2013, 4:04 PM Sep 30, 2013, 4:04 PM

                                    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 Sep 30, 2013, 5:02 PM Reply Quote 1
                                    • 1 / 1
                                    1 out of 17
                                    • First post
                                      1/17
                                      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

                                    • ostesmorbrod

                                      Landing pages for paid traffic and the use of noindex vs canonical

                                      A client of mine has a lot of differentiated landing pages with only a few changes on each, but with the same intent and goal as the generic version. The generic version of the landing page  is included in navigation, sitemap and is indexed on Google. The purpose of the differentiated landing pages is to include the city and some minor changes in the text/imagery to best fit the Adwords text. Other than that, the intent and purpose of the pages are the same as the main / generic page. They are not to be indexed, nor am I trying to have hidden pages linking to the generic and indexed one (I'm not going the blackhat way). So – I want to avoid that the duplicate landing pages are being indexed (obviously), but I'm not sure if I should use noindex (nofollow as well?) or rel=canonical, since these landing pages are localized campaign versions of the generic page with more or less only paid traffic to them. I don't want to be accidentally penalized, but I still need the generic / main page to rank as high as possible... What would be your recommendation on this issue?

                                      Intermediate & Advanced SEO | Sep 7, 2017, 7:34 AM | ostesmorbrod
                                      0
                                    • SolveWebMedia

                                      My site shows 503 error to Google bot, but can see the site fine. Not indexing in Google. Help

                                      Hi, This site is not indexed on Google at all. http://www.thethreehorseshoespub.co.uk Looking into it, it seems to be giving a 503 error to the google bot. I can see the site I have checked source code Checked robots Did have a sitemap param. but removed it for testing GWMT is showing 'unreachable' if I submit a site map or fetch Any ideas on how to remove this error? Many thanks in advance

                                      Intermediate & Advanced SEO | Nov 23, 2015, 1:10 PM | SolveWebMedia
                                      0
                                    • EcommerceSite

                                      Why is my Bing traffic dropping?

                                      In the middle of September we launched a redesigned version of our site. The urls all stayed the same. Since site launch traffic in Google has steadily increased but Bing traffic has dropped by about 50%. Any ideas on what I should look at?

                                      Intermediate & Advanced SEO | May 5, 2016, 4:08 PM | EcommerceSite
                                      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 | Sep 15, 2014, 4:18 PM | bizzer
                                      0
                                    • AdamThompson

                                      Organic search traffic dropped 40% - what am I missing?

                                      Have a client (ecommerce site with 1,000+ pages) who recently switched to OpenCart from another cart. Their organic search traffic (from Google, Yahoo, and Bing) dropped roughly 40%. Unfortunately, we weren't involved with the site before, so we can only rely on the wayback machine to compare previous to present. I've checked all the common causes of traffic drops and so far I mostly know what's probably not causing the issue. Any suggestions? Some URLs are the same and the rest 301 redirect (note that many of the pages were 404 until a couple weeks after the switch when the client implemented more 301 redirects) They've got an XML sitemap and are well-indexed. The traffic drops hit pretty much across the site, they are not specific to a few pages. The traffic drops are not specific to any one country or language. Traffic drops hit mobile, tablet, and desktop I've done a full site crawl, only 1 404 page and no other significant issues. Site crawl didn't find any pages blocked by nofollow, no index, robots.txt Canonical URLs are good Site has about 20K pages indexed They have some bad backlinks, but I don't think it's backlink-related because Google, Yahoo, and Bing have all dropped. I'm comparing on-page optimization for select pages before and after, and not finding a lot of differences. It does appear that they implemented Schema.org when they launched the new site. Page load speed is good I feel there must be a pretty basic issue here for Google, Yahoo, and Bing to all drop off, but so far I haven't found it. What am I missing?

                                      Intermediate & Advanced SEO | May 14, 2014, 6:02 AM | AdamThompson
                                      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 | Oct 8, 2013, 5:05 AM | Silkstream
                                      0
                                    • fablau

                                      Google Analytics: how to filter out pages with low bounce rate?

                                      Hello here, I am trying to find out how I can filter out pages in Google Analytics according to their bounce rate. The way I am doing now is the following: 1. I am working inside the Content > Site Content > Landing Pages report 2. Once there, I click the "advanced" link on the right of the filter field. 3. Once there, I define to "include" "Bounce Rate" "Greater than" "0.50" which should show me which pages have a bounce rate higher of 0.50%.... instead I get the following warning on the graph: "Search constraints on metrics can not be applied to this graph" I am afraid I am using the wrong approach... any ideas are very welcome! Thank you in advance.

                                      Intermediate & Advanced SEO | Jun 27, 2013, 12:57 PM | fablau
                                      0
                                    • BeytzNet

                                      Does Google bot read embedded content?

                                      Is embedded content "really" on my page? There are many addons nowadays that are used by embedded code and they bring the texts after the page is loaded. For example - embedded surveys. Are these read by the Google bot or do they in fact act like iframes and are not physically on my page? Thanks

                                      Intermediate & Advanced SEO | Apr 23, 2013, 9:01 PM | BeytzNet
                                      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.