Comments (3)
Hi @PWaddict,
as far as I know, web crawlers directly inspect/download the entire markup of the page. Thus, they completely ignore the fact that there's a modal or not. Instead, it is important that you have proper sitemap and robots.txt files.
You can block crawlers using the following methods:
- noIndex tag:
<meta name="robots" content="noindex">
- robots.txt
- ad-hoc client/server side code
You can also check if your website can be analyzed/crawled with online tools like Sureoak Seo Crawler.
from cookieconsent.
I had a problem with it.
I've implemented on my cookie notice, what if the device is mobile force_consent is off, and on desktop it is on.
const isMobile = window.matchMedia("only screen and (min-width: 760px)").matches; if (isMobile) { _addClass(html_dom, 'force--consent'); }
This fixed the issue, because google indexes using mobile crawler.
from cookieconsent.
as of v2.6.0, a new option hide_from_bots
was added.
If enabled, the plugin will detect if the current client is a bot/crawler; if it is a bot then it will prevent itself from running, to avoid the indexing of it's own text content and also any possible issue with modals.
from cookieconsent.
Related Issues (20)
- [Feat]: Return autoClear Cookies in Api Reference HOT 1
- [Bug]: CookieConsent v3 with Next.js HOT 2
- [Bug]: HOT 1
- [Bug]: Subdomain changes in the domain settings can lead to breaking the bar HOT 1
- [Docs]: update setCookieData examples with correct function
- [Feat]: Extend hideFromBots function HOT 4
- [Bug][a11y]: Opening the preference modal using keyboard navigation gives no feedback
- Add options to set accessible names HOT 4
- [Bug]: INP Problem HOT 2
- [Bug]: In translated / i18n projects, the config dialog does not work in the second language HOT 3
- [Feat]: Allow apply custom css to buttons HOT 4
- [Bug]: HOT 3
- [Bug]: Background entry animation ignored HOT 1
- [Bug]: Scripts with data-category are running before cookies are accepted HOT 4
- [Bug]: Clicking Save Preferences button rejects all services regardless of toggle state HOT 1
- [Bug]: The setCookieData() method can accidentally delete the lastConsentTimestamp field from the cc-cookie
- [Feat]: Expose the event that triggered onModalShow/onModalHide callback function
- [Bug]: Brave Browser block consent modal (import script.js) HOT 2
- How to display Font Awesome icons inside Cookie Consent? HOT 1
- [Feat]: callable method of removing cookies, like a `performAutoclearCookies` function HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookieconsent.