Skip to content

Instantly share code, notes, and snippets.

View umeshdepale's full-sized avatar

umeshdepale

View GitHub Profile
@umeshdepale
umeshdepale / cloudflare_ip_ban.php
Last active January 5, 2020 06:20 — forked from kevinpareek/cloudflare_ip_ban.php
Block / unBlock IPs in firewall via Cloudflare V4 PHP API
<?php
/**
* @ author https://www.kevinpareek.com
* @ Monday, 23 December 2019
**/
class cloudflare_ip_ban{
public function __construct($email, $apiKey, $by){
$this->cfEmail = $email;
$this->apiKey = $apiKey;