Score:0

How can i define white list for x-forward-for in nginx?

mp flag

I have 2 server and in server A

Client----->serverA------>serverB

i set x-forward-for header for client ip on serverA, now i can access ip in server B, But now, how can i allow ip with x-forward-for ip ?

jabbson avatar
sb flag
something like `if ($http_x_forwarded_for !~* "<allowed_ip>") {return 403;}` I'd assume?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.