1 of 20
2 of 20
3 of 20
4 of 20
5 of 20
6 of 20
7 of 20
8 of 20
9 of 20
10 of 20
11 of 20
12 of 20
13 of 20
14 of 20
15 of 20
16 of 20
17 of 20
18 of 20
19 of 20
20 of 20

site

doc

blog

success stories

Sending original IP through a header

By default, all reports about IP addresses send Azion’s Edge Nodes IP as a response. The request route follows the pattern:

IP(user) → Azion Edge Node → Origin Server

The original IP address is also sent through a X-Forwarded-For header, along with other IPs in the request route.

To receive the original IP, you must send the IP through a new header, adding a Behavior in the Default Rule in Rules Engine. Follow these steps:

  1. Log into Real-Time Manager
  2. In the Products Menu, select Edge Application
  3. Select your Edge Application
  4. Click Rules Engine > Default Rule
  5. In the Behavior section, click +
  6. In the And field, select Add Request Header
  7. In the next field, add the following string:

    X-Client-IP:${remote_addr}

  8. Click Save.

After completing the alteration in Rules Engine, you will find a new component in your report, X-Client-IP. Next to it, you can see the original IP from the request.


Didn’t find what you were looking for? Open a support ticket.