Coder Social home page Coder Social logo

Comments (7)

joshdentremont avatar joshdentremont commented on July 1, 2024 1

@kayakr that would be awesome if we could get that patched into the facets module. I really like the checkboxes for facets but am having the same issue with bots.

from documentation.

mjordan avatar mjordan commented on July 1, 2024

bots are getting stuck looping over facets

We've experienced this as well and it's brought out site to its knees.

from documentation.

ajstanley avatar ajstanley commented on July 1, 2024

Same. Tiktok ignores robots.txt. We have one sight that was getting several hits per second before we stuck a user agent filter in.

from documentation.

Natkeeran avatar Natkeeran commented on July 1, 2024

Drupal specific info here: https://dev.acquia.com/blog/automated-bot-traffic-strategies-handle-and-manage-it

from documentation.

joshdentremont avatar joshdentremont commented on July 1, 2024

Suggestions from tech call below:

Blocking bots by user agent:

  • add user agents as an env variable
  • mount drupal.defaults.conf as a volume so changes persist
    • can you add a secondary file to drupal.defaults.conf and mount that instead?

Stopping legit bots from crawling facets:

  • ignore query params in robots.txt
  • block collections and search pages in robots.txt, and instead use a sitemap (simple sitemap was a suggested drupal module)

Remaining questions:

  • How do we block by IP in Docker
  • How do we update robots.txt? Should we supply a default or just document how to change it?

from documentation.

ajstanley avatar ajstanley commented on July 1, 2024

Nginx allows for multiple conf files. We could add an include in nginx.conf to point to a file in /var/www/drupal which would eliminate the need for a separate mount.

from documentation.

kayakr avatar kayakr commented on July 1, 2024

fwiw, I've found the patch for facets at https://www.drupal.org/node/2937191 useful; it converts the facets into actual checkboxes instead of the default that renders them as links (followable by bots) that get converted to checkboxes by js.

from documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.