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?
Can modernizr and/or yepnope react to bots and spiders?
576 Views Asked by codecowboy At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in WEB-CRAWLER
- Scrapy CrawlSpider not following links
- python scrapy login redirecting problems
- Google spider gives 404 error on Angular links: how to fix it?
- Watson Content Analytics: How to make web crawler plug-in to get data, sending POST request?
- scrapy startproject error
- Crawler architecture: Avoid getting requests counted in Google Analytics
- application.cfc - conditionally turn on session and/or client management?
- Sails.js static html renderer
- How to download text contained in JavaScript files via crawler4j?
- T_STRING error in my php code
- Select option from dropdown and submit request using nodejs
- Web-Crawler for VBA
- How to extract the content of an HTML attibute
- No performance gain with python threading
- Delay when extracting email
Related Questions in BOTS
- C++ IRC Bot Buffer Error
- Python AttributeError: 'str' object has no attribute 'append' (Specific)
- Problems creating a polling system for a twitch bot
- A good estimate as to how many visitors are bots
- Creating a custom bot rather than using Hubot with Firebase
- Change audio output
- I want to create a bot that can open my bluestacks app player , then install apps to open various apps and then finally close bluestacks .
- Bamboo and xCode Bot solution
- Identify sending user, Python IRC
- How to block "bot*" bot via .htaccess
- Xcode Server Simulator Times Out Waiting 120 Seconds
- Python (2.7.10): Key Error: 'id'
- How can I get these Perl scripts to delay?
- addition with python into a .txt file
- How do I add variable `XP` to `userData.XP` for my Discord.js bot?
Related Questions in MODERNIZR
- Modernizr: IE10 & Flexbox: How to get IE10 flexbox detected
- Modernizr Html5 Validation
- running specific code in js file pertaining to i.e9 v's all other browsers
- understanding modenizer contains Function
- Jquery Google CDN not recognised when loaded?
- Which Modernizr css class determines if translateX() can be used?
- How to check window.showModalDialog availability?
- The use of modernizr with rotate3d in IE9
- Masonry (grid) with window.history.pushState
- Does modernizr distinguish between image and file system access?
- Load multiple files with Modernizr
- SVG image pattern position, different behaviour in IE
- Conditionally serving different javascript for different screen sizes
- Why is chrome looking for '/assets/otis_redding.png'?
- Referencing element using Modernizr
Related Questions in YEPNOPE
- YepNope/Modernizr callbacks with global JavaScript variables and Internet Explorer
- Conditional Loading of CSS files based on test condition in JQuery plugin
- How do I load an edge animation with an AJAX call? jquery getScript fails
- Modernizr.load shows both yep and nope alert
- Error with minified yepnope injected by jQuery
- yepnope.js ie7/ie8 jquery
- Loading charset using yepnope.js
- Raphael not running callback parameter
- Can modernizr and/or yepnope react to bots and spiders?
- Expires headers in ASP MVC Development Server
- Modernizr testing
- Alternatives to YepNope and LabJS
- Jquery Colorbox breaks when css loaded in body, is a fix possible?
- Using yepnope if already have inline jquery code on the page that can't remove
- How to preload css files without applying them with yepnope.js?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.