Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Page Range 404

No security coverage Under active development 11 sites

This module changes Drupal's default behavior for paginated views and forum pages. Instead of showing the last available page for an invalid page number, it will return a 404 not found error. This helps prevent bots from accessing non-existent pages and can potentially reduce server load if used with other performance-enhancing modules.

The normal Drupal behavior on paginated displays when a request is made for an invalid page number is to serve the last available page to the user. If someone requests page=5 and there are only 4 pages, page 4 gets served. This can be undesirable if you have aggressive bots crawling your site or you've recently changed your pagination setup and you don't want to keep getting traffic to invalid URLs.

Page Range 404 changes default Drupal behavior for paginated Views displays to serve a 404 response instead of the last page in the index when a request is received for an out of range page number. It includes a submodule for returning 404 responses on forum index pages served by the Forum module in Drupal 10 core.

Post-Installation

There is nothing to configure. Once you install it, Page Range 404 will evaluate any access to a Views path that has a "page" query variable to check if that page exists before rendering the page.

If you enable the optional Page Range Forums 404 module, the same behavior will be applied to your Forum index pages.

Usage

On a high traffic site that is getting heavily crawled by bots, this module can paradoxically drive up your server load if you're serving fully rendered 404 pages. Depending on your setup, a Drupal 404 page can actually be more expensive than the cached Views response that it's replacing.

For this reason, you may also want to install something like Fast 404 to reduce the impact on
your server.

Ask your assistant about Page Range 404

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Mar 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-rc5 Pre-release 9–10 Mar 9, 2024
1.0.0-rc4 Pre-release 9–10 Mar 7, 2024
1.0.0-rc3 Pre-release 9–10 Mar 5, 2024
1.0.0-rc2 Pre-release 9–10 Mar 4, 2024
1.0.0-rc1 Pre-release 9–10 Mar 4, 2024