Skip to content

Instantly share code, notes, and snippets.

@kjacobsen
Created October 27, 2015 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjacobsen/9bea294c866bf876f215 to your computer and use it in GitHub Desktop.
Save kjacobsen/9bea294c866bf876f215 to your computer and use it in GitHub Desktop.
# Creates/updates rules for Tor Exit address accross all of your domains in CloudFlare
.\Set-CloudFlareWhitelist.ps1 -Token $MyCloudFlareToken -Email $MyEmail
# Creates/updates rules for Tor Exit IP addresses only for the domain contoso.com
.\Set-CloudFlareWhitelist.ps1 -Token $MyCloudFlareToken -Email $MyEmail -Zone contoso.com
# Remove all Tor Exit IP address rules specified for all of your domains in CloudFlare
.\Set-CloudFlareWhitelist.ps1 -Token $MyCloudFlareToken -Email $MyEmail -ClearRules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment