Skip to main content

Comments

4 comments

  • cPanelChris
    Hello @000 , Something like the following should work to check what protocol an IP is. [CODE=php]
    0
  • 000
    Many thanks Chrish :) Then if we have RECORD in data base as[PHP]column_ip_client = varchar 15[/PHP]that is WRONG ? Any day, any hour our web can go visited by FILTER_FLAG_IPV6
    ?
    0
  • cPanelChris
    Hello @000 , An IPv6 IP address can contain up to 39 characters including the semicolons. As such, a varchar of length 15 would not be guaranteed to be able to hold the IP. If the IP exceeds 15 characters, only the first 15 characters would be stored. This is documented at the link below.
    0
  • 000
    An IPv6 IP address can contain up to 39 characters...

    Oh, thanks again.Then many code around Internet is broken! ... Oh god ...
    0

Please sign in to leave a comment.