Mochiweb Get Client IP Address
- Erlang web service adds IP whitelist function
- Erlang Mochiweb gets the real IP of the request
Prefix
Principle
- Get the last IP of X-Forwarded-For to check
- According to the rules of its own web framework, special processing is used to handle the IP acquisition rules
IP acquisition processing in Mochiweb
- Refer to its latest code
- Add the Shared Address Space address range
- mochiweb_request.erl
