Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Bypass Cloudflare (Middleware For Guzzle)

License

Notifications You must be signed in to change notification settings

matancohen365/cloudflare-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bypass Cloudflare

Bypass Cloudflare Middleware For Guzzle

Installation

Using composer:

composer require tunaabutbul/cloudflare-middleware

Usage

use GuzzleHttp\Client;
use Tuna\CloudflareMiddleware;
use GuzzleHttp\Cookie\FileCookieJar;

$client = new Client(['cookies' => new FileCookieJar('cookies.txt')]);

$client->getConfig('handler')->push(CloudflareMiddleware::create());

$res = $client->request('GET', 'http://www.exemple.com/');
echo $res->getBody();

Thanks

License


This middleware is licensed under the MIT License - see the LICENSE file for details

About

Bypass Cloudflare (Middleware For Guzzle)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages