Part of the Rules ecosystem · 10 projects
This module provides a Rules condition that allows you to check if the website's base URL matches a configured URL. This is useful for restricting rules based on the environment, such as preventing accidental data posting to external APIs from development environments.
This module provides a Rules condition plugin. This enables you to check whether or not the base url matches a configured url.
Background
When posting data to third party api's, it may be desirable to restrict how a rule behaves depending on your environment. Most environments have a different uri or base url. Exposing this as a condition allows rules to be restricted on this basis.
One use case is that after syncing a database from a production environment, we likely want to prevent developers inadvertently posting to certain api endpoints. This will likely be conditional on their environment.
Ask your assistant about Rules Condition Environment
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.
More in the Rules ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | 8–10 | Jan 2, 2024 |