Aktionen

Vorlage

Wie ist meine IP V2

Aus znilwiki

<runphp>if (strpos(getenv("REMOTE_ADDR"), ":") == false) { echo "Deine IPv4 - Adresse"; } else { echo "Deine IPv6 - Adresse"; };</runphp> <runphp>if getenv("HTTP_X_FORWARDED_FOR") { getenv("HTTP_X_FORWARDED_FOR"); } else { getenv("REMOTE_ADDR"); };</runphp>

<runphp>echo getenv("REMOTE_ADDR");</runphp><purge/>

<runphp>echo gethostbyaddr(getenv("REMOTE_ADDR"));</runphp>

<runphp> if(getenv("HTTP_X_FORWARDED_FOR"))

           {
               getenv("HTTP_X_FORWARDED_FOR");
           }
               else
           {
               getenv("REMOTE_ADDR");
           };

</runphp>