HF RL Explorer

Task: Extract Client IP Address from HTTP Headers

Task: Extract Client IP Address from HTTP Headers: a task in Terminal-Lego-15k (Harbor dataset). Create a Python utility function that extracts the real client IP address from HTTP request headers. The function should handle various proxy scenarios and check multiple headers in the correct…

The task

Create a Python utility function that extracts the real client IP address from HTTP request headers. The function should handle various proxy scenarios and check multiple headers in the correct priority order.

Part of PrimeIntellect/Terminal-Lego-15k.