Skip to content

Instantly share code, notes, and snippets.

Andries Louw Wolthuizen andrieslouw

Block or report user

Report or block andrieslouw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am andrieslouw on github.
  • I am andrieslouw (https://keybase.io/andrieslouw) on keybase.
  • I have a public key whose fingerprint is 1F9D 0881 E779 B284 EBE3 25FC 7560 C1B3 861C E500

To claim this, I am signing this object:

@andrieslouw
andrieslouw / cfban.php
Created Oct 11, 2016
Cloudflare V4 PHP API - block / unblock IP in firewall
View cfban.php
<?php
/**
* @author https://github.com/andrieslouw
* @copyright 2016
**/
function cfban($ipaddr){
$cfheaders = array(
'Content-Type: application/json',
'X-Auth-Email: your@email.com',
You can’t perform that action at this time.