Skip to content

Instantly share code, notes, and snippets.

@Mteigers
Mteigers / code.gs
Created May 29, 2013 18:49
Google App Script to allow other users in your organization (or elsewhere) to whitelist IP addresses that may have been blocked by CloudFlare's firewall.
/**
* CloudFlare Whitelister by Peter Olds
*
* Peter Olds for Kyäni, Inc. (c) 2013
*
**/
var INCOMING_LABEL = 'CloudFlare Whitelist Request'; // This is the label that the script loops through.
var ARCHIVE_REQUESTS = true; // Would you like to save IP Allow requests?
var COMPLETE_LABEL = '[COMPLETE] ' + INCOMING_LABEL; // Once a request is complete if ARCHIVE_REQUESTS is true it is assigned this label.
var ALLOW_FROM_EXTERNAL = true; // For security reasons you may not want people outside your organization whitelisting IP's (if you use the provided Gmail Filter this is handled automatically)