All Projects → TypeCtrl → cloudflare

TypeCtrl / cloudflare

Licence: MIT license
Bypass Cloudflare's anti-bot page

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cloudflare

detect-cloudflare-plus
True Sight Firefox extension.
Stars: ✭ 34 (+126.67%)
Mutual labels:  cloudflare
inkrss
Notify when rss feeds are updated | RSS 更新通知
Stars: ✭ 234 (+1460%)
Mutual labels:  cloudflare
php-proxy
php proxy based on GoAgent protocal,Implemented by golang
Stars: ✭ 85 (+466.67%)
Mutual labels:  cloudflare
viteflare
Cloudflare workers meet Vite plugins
Stars: ✭ 35 (+133.33%)
Mutual labels:  cloudflare
BlackIQ.ir
BlackIQ.ir Source Code
Stars: ✭ 14 (-6.67%)
Mutual labels:  cloudflare
server-ip-addresses
Daily updated list of IP addresses / CIDR blocks used by data centers, cloud service providers, servers, etc.
Stars: ✭ 74 (+393.33%)
Mutual labels:  cloudflare
slshx
⚔️ Strongly-typed Discord commands on Cloudflare Workers
Stars: ✭ 163 (+986.67%)
Mutual labels:  cloudflare
cloudflare-worker-routing
A simple Cloudflare Worker with built-in routing
Stars: ✭ 38 (+153.33%)
Mutual labels:  cloudflare
VestaWebInterface
PHP interface for VestaCP, providing a beautiful UI, UX, features & integrations.
Stars: ✭ 92 (+513.33%)
Mutual labels:  cloudflare
cfw-easy-utils
An in-depth library to assist with common tasks with CF Workers. Includes utils for responses, cookies, and more!
Stars: ✭ 52 (+246.67%)
Mutual labels:  cloudflare
High-Traffic-wordpress-server-configuration
High Traffic WordPress server configuration Nginx (updated) PHP 7.4 PHP-fpm Mariadb (updated) Wordpress (updated) Cloudflare Full SSL
Stars: ✭ 31 (+106.67%)
Mutual labels:  cloudflare
fa.BlackIQ.ir
Persion version of BlackIQ.ir
Stars: ✭ 16 (+6.67%)
Mutual labels:  cloudflare
github-base
Simple, opinionated node.js interface for creating basic apps with the GitHub API.
Stars: ✭ 58 (+286.67%)
Mutual labels:  got
flarequench
Burp Suite plugin that adds additional checks to the passive scanner to reveal the origin IP(s) of Cloudflare-protected web applications.
Stars: ✭ 44 (+193.33%)
Mutual labels:  cloudflare
worker-auth-providers
worker-auth-providers is an open-source providers to make authentication easy with workers. Very lightweight script which doesn't need a lot of dependencies. Plug it with any framework or template of workers.
Stars: ✭ 85 (+466.67%)
Mutual labels:  cloudflare
kubeflare
A Kubernetes Operator to manage Cloudflare settings via a declarative Kubernetes API
Stars: ✭ 50 (+233.33%)
Mutual labels:  cloudflare
nebula
Source Code for the Home Server setup.
Stars: ✭ 48 (+220%)
Mutual labels:  cloudflare
carrierwave-cloudflare
🎑 This Rails gem integrates Carrierwave with Cloudflare Image Resizing
Stars: ✭ 24 (+60%)
Mutual labels:  cloudflare
Cloudflare-dns-update
Allows me to update my CloudFlare dns record so that I can have access to my server with a dynamic IP
Stars: ✭ 35 (+133.33%)
Mutual labels:  cloudflare
warpy
A command-line program to get WARP+ as WireGuard written in python
Stars: ✭ 57 (+280%)
Mutual labels:  cloudflare

No longer supported, try a browser based solution like https://github.com/ngosang/FlareSolverr

cloudflare scrape npm CircleCI coverage status

Bypass Cloudflare's anti-bot page also known as I'm Under Attack Mode

Based on python library cloudflare-scrape

The anti-bot page requires a JS obfuscated math problem and http form submission after a setTimeout. The setTimeout is required, so bypassing cloudflare takes about 6 seconds.

Install

npm install @ctrl/cloudflare

Use

This package is meant to be used with got. After a failed request, use the catchCloudflare function to resolve your request.

Requires passing cookiejar to got. Reusing the cookiejar in subsequent requests will bypass the cloudflare anti-bot page, until the cookie expires.

Call catchCloudflare(err, options) passing the error and the options used to make the request. catchCloudflare will rethrow if it is unable to bypass of if the error is not cloudflare related.

import { catchCloudflare } from '@ctrl/cloudflare';
import got from 'got';
import { CookieJar } from 'tough-cookie';

// example helper function
async function main() {
  // cookie jar is required! speed up future requests by keeping a persistant cookie jar
  const cookieJar = new CookieJar();
  const options = {
    // use "url: to describe path
    url: 'https://rlsbb.ru/support-us',
    cookieJar,
    // either disable retry or remove status code 503 from retries
    retry: 0,
  };

  let res: got.Response<any>;
  try {
    // success without cloudflare?
    res = await got(options);
  } catch (error) {
    // success with cloudflare?
    res = await catchCloudflare(error, options);
  }

  return res.body;
}

See Also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].