Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force bots to use compatibility mode #7

Open
alexstandiford opened this issue Aug 26, 2021 · 3 comments
Open

Force bots to use compatibility mode #7

alexstandiford opened this issue Aug 26, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@alexstandiford
Copy link
Contributor

alexstandiford commented Aug 26, 2021

Related, #6

By forcing bots to use compatibility mode instead of the web app, we can ensure that all pages will be crawled by bots such as Google, ensuring that we do not lose any SEO benefits that comes with our site.

I envision that this would work off of an allow-list of user agents, and the list would be filter-able. This would not only allow us to set up a default list of agents, but it would also allow us to add more agents to the list should the site need that.

@alexstandiford
Copy link
Contributor Author

alexstandiford commented Aug 26, 2021

Possible list, pulled from Webnots

  • Googlebot
  • Googlebot-News
  • Googlebot-Video
  • Googlebot-Image
  • Mediapartners-Google
  • Mediapartners-Google
  • AdsBot-Google
  • AdsBot-Google-Mobile-Apps
  • Bingbot
  • MSNBot
  • MSNBot-Media
  • AdIdxBot
  • BingPreview
  • Desktop
  • Mobile
  • Business Search (Advertisements)
  • Baidu Union
  • Baidu Favorites
  • Image Search
  • News Search
  • Video Search
  • YandexBot
  • YandexMobileBot
  • Yandex
  • YandexDirect
  • YandexDirectDyn
  • YandexMedia
  • YandexImages
  • YaDirectFetcher
  • YandexBlogs
  • YandexNews
  • YandexPagechecker
  • YandexMetrika
  • YandexCalendar
  • YandexScreenshotBot
  • YandexFavicons
  • YandexWebmaster
  • YandexImageResizer
  • YandexSitelinks
  • YandexAntivirus
  • YandexVertis
  • Slurp
  • DuckDuckBot
  • ia_archiver
  • aolbuild
  • teoma
  • Ecosia

@alexstandiford
Copy link
Contributor Author

Might be worth using a package, like: https://packagist.org/packages/jaybizzle/crawler-detect

@alexstandiford
Copy link
Contributor Author

in #6, use_compatibility_mode was made to be extend-able. This makes it possible to add this as a decision list item. I'm inclined to make this a separate composer package that is used by the boilerplate by default. This would make it possible to remove this if someone wanted to-do that for some reason.

@alexstandiford alexstandiford added the enhancement New feature or request label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant