httptoolkit/read-tls-client-hello

Can we use this using next.js?

twoatomsdick opened this issue · 1 comments

How can I use this module within next.js's new /app router?

Needed for security reasons on my platform since I want to implement a security algorithm using a person's TLS fingerprint and some more data.

No idea I'm afraid. You would need access to the underlying TCP stream (the data before HTTP processing starts), or the underlying HTTP server (to use trackClientHellos to patch it and access the streams automatically).

It might be easier to do this in a separate reverse proxy in front of your Next.js app, so you can process the traffic entirely yourself before it gets to Next.js.

For now I'm going to close this issue - this is definitely a good question, but it's a question you'll need to ask the Next.js team I think, it all depends on how they give you access to the raw data.