Problem/Motivation
I had a site experiencing a bunch of slowdown on the backend. Turns out that a LLM was running a scan on the site, and was endlessly following the monthly pagination links on the calendar. Since usually no one looks at the calendar beyond maybe a year or two ahead, all of those pages were not cached and as the scanner reached the year 2100 the site was being bogged down with the requests.
Proposed resolution
What I'd like to do is introduce some limits on how far out into the future/past the pagination (I'm using monthly) can display links for. Ideally these would be configurable in the pagination settings on the view, and would let you set relative and fixed limits. For example, one might limit the view from showing links to anything before "2015", but also prevent showing links for any pages after "+2 years" from now.
It may be the case that actually limiting the rendering of the view outside of those limits might be a better solution than just stopping the rendering of the pagination.
I'm aware of Pager previous/current/next should have option for nofollow but with the differing ways that bots follow directives like nofollow I'm thinking the best solution is just to remove the link entirely.
User interface changes
Likely just some new input boxes in the pagination of the view.
Comments