Purpose: White list admins when they log in so they can submit html content without the cloudflare challenge screen.
This simple module creates two new permissions "cloudflare whitelist" and "cloudflare blacklist." Any user with a role with the respective permissions will be either whitelisted when logging in, unwhitelisted when logging out, or similarly blacklisted when logging in, and unblacklisted when logging out. If the ip changes mid session, the module will update cloudflare as well.
This module should be incorporated into http://drupal.org/project/cloudflare once that module is fully upgraded to D7 since there is much overlap in the api connections to cloudflare. However, this module in its current form is complete in its specific purpose.
Please note: The cloudflare api as of 1/1/2012 only allows ~300 api calls/day. You do not want to enable this module on sites with hundreds of users given the permissions provided by this module.
Dependencies:
dependencies[] = uiplog
Instructions:
Make sure you add the following to your settings.php:
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"] ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];
Save your email address and CloudFlare API key to the CloudFlare administration screen @ (admin/settings/cloudflare_roles).
This project was sponsored by NumbersUSA.
Downloads
Project Information
- Maintenance status: Actively maintained
- Development status: Maintenance fixes only
- Module categories: Third-party Integration
- Reported installs: 2 sites currently report using this module. View usage statistics.
- Downloads: 142
- Last modified: May 11, 2012
