Quantcast
Channel: User Mojtaba Kamyabi - Stack Overflow
Viewing all articles
Browse latest Browse all 40

Answer by Mojtaba Kamyabi for Django (v4) request.META['REMOTE_ADDR'] not working anymore?

$
0
0

Check your intermediate proxies like nginx, apache, etc if you use one in between of your requests and web application. sometimes proxies manipulate request headers before sending it to web application

for instance for Nginx you could use something like this (source):

proxy_set_header X-Forwarded-For $remote_addr;

Viewing all articles
Browse latest Browse all 40

Latest Images

Trending Articles





Latest Images