API Testing · Senior · Question 74 of 75

What does a test for X-Forwarded-For spoofing check?

Show the answer

Correct answer: That clients can't bypass IP-based limits by faking the header

Explanation

If the API trusts any client-supplied X-Forwarded-For, attackers rotate fake IPs to escape rate limits or allow-lists. Only trusted proxies should set it.

Further reading

Problem with a question

API Testing · Senior · question 74

Test yourself

Take the API Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz