A
A
AllexSS2018-12-21 09:45:57
htaccess
AllexSS, 2018-12-21 09:45:57

How to determine the real IP of the visitor in htaccess?

Due to constant attempts to put the site, anti-ddos protection is connected. Traffic to the site comes through a proxy. When you try to register a ban or redirect for some users by IP in htaccess, nothing works, because instead of the real IP of the user, an IP proxy is determined. What can be written in htaccess so that the real IP is determined and the prescribed redirect rules work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2018-12-21
@VELIK505

most likely in this case you need to install mod_rpaf

B
Boris Syomov, 2018-12-21
@kotomyava

https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question