Cloudflare Roles

Component ID

1438182

Component name

Cloudflare Roles

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1437

Component created

Component changed

Component body

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.

Please note: The cloudflare api as of 1/1/2012 only allows ~300 api calls/day. Unless you have hundreds of admins/users needing this role, you should be ok.

Dependencies:
dependencies[] = uiplog
dependencies[] = cloudflare

Instructions:
Make sure you follow the instruction of the cloudflare module.

The 1.0 version does not have the cloudflare dependency but duplicates a lot of its code - the intention is to deprecate this version in favor of the dependency on the cloudflare module.

This project was sponsored by NumbersUSA.