IP is back

ip.linux365.ro is back, varianta http sau https, in functie de cum doriti sa-l accesati.

PS: merge si in cURL:

curl ip.linux365.ro

PPS: the soruce code (furat de aici)

<?php
function get_client_ip() { $ipaddress = ''; if (isset($_SERVER['HTTP_CLIENT_IP'])) { $ipaddress = $_SERVER['HTTP_CLIENT_IP']; } else if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; } else if (isset($_SERVER['HTTP_X_FORWARDED'])) { $ipaddress = $_SERVER['HTTP_X_FORWARDED']; } else if (isset($_SERVER['HTTP_FORWARDED_FOR'])) { $ipaddress = $_SERVER['HTTP_FORWARDED_FOR']; } else if (isset($_SERVER['HTTP_FORWARDED'])) { $ipaddress = $_SERVER['HTTP_FORWARDED']; } else if (isset($_SERVER['REMOTE_ADDR'])) { $ipaddress = $_SERVER['REMOTE_ADDR']; } else { $ipaddress = 'UNKNOWN'; } return $ipaddress; }
echo 'Ai IP-ul: '.get_client_ip().'. Esti un B0$$.';
?>

About Author:

I look 12, but I'm a 42-year-old investment banker!

3 thoughts on “IP is back

      1. LOL, nu merge, da’ intentia conteaza. Mi-a placut faza de mai sus cu “(furat de aici)”. Si acum rid minzeste la faza cu dd if & pv & dd of: “Bai frate, genial, super, meserie !”. Tu rideai pe infundate, nu bagasei un disclaimer similar, dar roata era deja inventata. Traiasca Google, sau Gogu… Daca s-o termina cu criza cu virusul cu nume de bere si mai esti la aia de linga Cocoru’ si am timp, vin cu tichetu’ :)))))))))))))))

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.