Apache reports REMOTE_ADDR PHP. If Apache is listening on the v6 interface, it will be the address of v6.
Easy to differentiate. IPv4 addresses will always have a fullstop character . , and IPv6 addresses will always contain a colon :
When creating blocklists (or whitelists), you should be careful with v6 addresses. They can be shortened using two consecutive colons :: . There is no guarantee that your OS will use a shorter or longer form, so your script should handle this. See the Wikipedia IPv6 page for more details.
vbence
source share