In WAF-config -> redirection-> blocked IPs message there is the message a person gets when he/she is blocke form the website.
I would like to have the possebility this person clikc on a link (href mailto) where he sends me his Ip-adres. So i can remove him/her from the blacklist.
I can make that email (no problem) and the link. But i can not send the ipadres in the body :
something like : <a href="mailto:email@example.com?subject=No entrance to website amaliavansolms.org ;body=i like to have entrance to the website Amaliavansolms.org My IP-adres is nnn.nnn.nnn.nnn>Webmaster
Where nnn.nnn.nnn.nnn. should be the correct ipadres.
So <? PHP echo $_SERVER; ?>
does not work .
Since a couple of versions ago blocked users get a message with his ip and the time remaining to be unblocked. You can add extra info to this message into Waf configuration -> Blocked IPs message. You can put your email here and tell users that can contact you by email adding the ip they see in the message so you can unblock them.
yes i know about this function. It is the same function i was talking about. But in this message i want a "href mailto"-link and in the body of that mailto-link of that mail i would like to have the ipadress.
Getting the ip is not trivial. I use several methods to get the REAL ip of the visitor, so you should use the same php code to get the ip shown to your visitor blocked and currently there is no way to do this in the message shown to the user by SCP.