DemonMartin / tlsClient

A wrapper for bogdanfinn/tls-client based on ffi-rs for unparalleled performance and usability. Inspired by @dryft/tlsclient.
https://www.npmjs.com/package/tlsclientwrapper
22 stars 2 forks source link

Can't bypass cloudflare's protection #3

Closed wwangyu2 closed 4 months ago

wwangyu2 commented 4 months ago

image

URL: https://www.eleze.top/

code:

import tlsClient from 'tlsclientwrapper';
const client = new tlsClient();

console.log(await client.get("https://www.eleze.top/"));

Can you give an example of how to bypass cloudflare protection?

DemonMartin commented 4 months ago

Hey! I think you misunderstand what tlsclientwrapper is for.

It's a simple Wrapper for the TLSClient Libs created by @bogdanfinn. It does not in any way "bypass cloudflare protection". The requests have a valid TLS Signature which are realistic, but it cannot solve JavaScript related Challenges.

For that, you can probably use something like https://scrappey.com/ by @Pim97.

(p.s, you need to call client.terminate() at the End to terminate the workerpool)