Drupal 10 Module that provides a Context Condition that checks the user's IP address, and a Context Reaction that denies access to nodes and media. If the Reaction executes, it returns a 403 Access Denied response to the user (or optionally redirect them to a proxy to authenticate before accessing the resource).
This module's primary use case was to provide IP access control to Islandora content, but it can be used without Islandora.
drupal/web/modules/contrib
directory.drush en -y ip_range_access
.The Condition and Reaction are independent of each other (Context FTW!) but if your intent is to block a user from accessing content based on their IP address, do the following:
https://proxy.example.com/login?url=
.See issue list.
Bug reports, improvements, feature requests, and PRs welcome. Before you open a pull request, please open an issue.