Skip to content

Instantly share code, notes, and snippets.

View kevinpareek's full-sized avatar
🎯
Focusing

Kevin Pareek kevinpareek

🎯
Focusing
View GitHub Profile
@kevinpareek
kevinpareek / cloudflare_ip_ban.php
Last active April 7, 2020 13:02
Block / unBlock IPs in firewall via Cloudflare V4 PHP API
<?php
/**
* @ author https://www.kevinpareek.com
* @ Tuesday, 7 April 2020
**/
class cf_ipBan
{
private $cfEmail;
<?php
/**
* @ author https://www.kevinpareek.com
* @ Monday, 23 December 2019
**/
class CdnWPFC{
public static function cloudflare_clear_cache($email = false, $key = false, $zoneid = false){
if(!$email && !$key && !$zoneid){
if($cdn_values = get_option("WpFastestCacheCDN")){