Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6665781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:45:34+00:00 2026-05-26T02:45:34+00:00

I have some JS running on a page which pops up a modal localisation

  • 0

I have some JS running on a page which pops up a modal localisation select box. I would like to prevent this from happening for bots /crawlers. Is there a way to do this using Modernizr and / or yepnope.js?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:45:34+00:00Added an answer on May 26, 2026 at 2:45 am

    Most bots won’t run any Javascript code at all. They’ll download your code and examine it to see what it does or what it’s about, or whatever that particular bot’s function is, but they generally don’t need to actually run any JS code to do this.

    Those that do run JS code will do so in an environment that will differ from bot to bot. Some may simulate a browser environment, others may run in an actual brower. But without knowing about the innards of all the bots you’re likely to encounter, you really won’t be able to solve it for sure with a tool like Modernizr.

    When it comes to looking at your end users’s browser, doing browser detection is considered a bad thing, and feature detection (ie Modernizr) is considered a better solution.

    However the rules change when it comes to bots, because of the factors I’ve discussed above, and it does indeed become legitimate to do detection for them based on their user-agent string.

    Any legitimate bot will provide a UA string that identifies itself as such, and should be fairly easy to spot.

    If a bot isn’t providing an identifiable UA string, then it isn’t a legitimate bot, so there’s no reason for you to give it any special treatment to make life easier for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET application running on windows. I want clicking on some page
I occasionally have some long running AJAX requests in my Wicket application. When this
Following the directions at this question , I have some code running to extract
I have an ASP page which will query records from a DB Table and
I have been to some css/html/js discussing board which provide a text box to
I would like to create a System Health web page which will monitor the
I have a form on my PHP page which performs some ajax validation (that's
I have a page which does some intense and long lasting calculations in Javascript.
I have some long running scripts with breaks requiring input/interaction to continue but when
I have some .net apps running that I need to monitor for example, then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.