Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Use the X-Forwarded-For field to modify the message request ip

Shulou Source: shulou.com Published: 2022-06-01 08:41:05 11月26日 Update

(1) The original web page visited

Display, requires only 127.0.0.1ip access

(2) The complete message request obtained is

(3) We modify it by adding the x-forworded-for field

GET /from.php HTTP/1.1Host: 192.168.0.103Cache-Control: max-age=0User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36Upgrade-Insecure-Requests: 1Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8Accept-Language: zh-CN,zh;q=0.9X-Forwarded-For:127.0.0.1Connection: close

(4) Return value after playback

Tags: Fields messages raw web pages Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology MySQL NVidia Shulou Information