Module Description
This module is the simplest way to use the specific HTTP header name to determine the client IP.

The module provides an equivalent of reverse_proxy_header setting (which is deprecated from Drupal 8.7.0).

The most common usage is:


* real client IP is stored in some custom (non-default) header;
* you have no ability to affect this on reverse proxy or server sides.

The module does not provide any UI. How to use it: Step 1) Install and enable the module. Step 2) Add the `reverse_proxy_header` setting to your setting.php file:

/** * Set the HTTP header name which stores the real client IP. */ $settings['reverse_proxy_header'] = 'HTTP_X_FORWARDED_FOR_CUSTOM_HEADER'; What about available alternatives?


* rename the header name (or copy its value) to the supported header HTTP_X_FORWARDED_FOR on proxy or server side;
* copy the value from the custom header to $_SERVER['HTTP_X_FORWARDED_FOR'] in your index.php before Drupal initialization;

πŸ‡ΊπŸ‡¦ This module is maintained by Ukrainian developers. Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
Project Usage
1521
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of determining the client IP using a specific HTTP header name, especially when the real client IP is stored in a custom header and cannot be affected on the reverse proxy or server sides.
Data Name
reverse_proxy_header

OPENAI CHATBOT

OPENAI CHATBOT

14:32:47
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.