Next.js Discord

Discord Forum

request ip

Answered
Persian posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by Arinji
Nope, you can only get ip from X-Forwarded-For, or any other header if the request is getting proxied
View full answer

7 Replies

Nope, you can only get ip from X-Forwarded-For, or any other header if the request is getting proxied
Answer
There isn't any other way to get the ip if user
Yes, they can, use cloudflare
They will proxy the ip
Which can't be modified
And is safe
if cloudflare is being used, use header cf-connecting-ip