IPv6 ResourcesEducating Yourself about IPv6ARIN's guide to IPv6 preparedness
|
Viewed over IPv4 |
Viewed over IPv6 |
Live |
|
||
Viewed over IPv4 |
Viewed over IPv6 |
Live |
|
||
Viewed over IPv4 |
Viewed over IPv6 |
Live |
|
||
Viewed over IPv4 |
Viewed over IPv6 |
Live |
|
||
Viewed over IPv4 |
Viewed over IPv6 |
Live |
|
<div align="center" valign="middle">
<small><font color="white">
Your IP Address is
<strong><?php echo $_SERVER['REMOTE_ADDR']; ?></strong>
<br>
<?php
if (preg_match("/:/", $_SERVER['REMOTE_ADDR'])) {
echo "You've got IPv6!<br>";
echo "<a href='http://attack.samsclass.info/shamev4.htm' target='_blank' style='color: #ffffff;'>More information</a>";
} else {
echo "You still use IPv4 :(<br>";
echo "<a href='http://attack.samsclass.info/shamev4.htm' target='_blank' style='color: #ffffff;'>More information</a>";
}
?>
The others are trivial modifications.
<div align="center" valign="middle">
<small><font color="white">
Your IP Address is
<strong><?php echo $_SERVER['REMOTE_ADDR']; ?></strong>
<br>
<?php
if (preg_match("/:/", $_SERVER['REMOTE_ADDR'])) {
echo "You've got IPv6!<br>";
echo "<a href='http://attack.samsclass.info/shamev4.htm' target='_blank' style='color: #ffffff;'>More information</a>";
$my_file = 'countv6';
} else {
echo "You still use IPv4 :(<br>";
echo "<a href='http://attack.samsclass.info/shamev4.htm' target='_blank' style='color: #ffffff;'>More information</a>";
$my_file = 'countv4';
}
$fp = fopen($my_file, 'c+');
flock($fp, LOCK_EX);
$count = (int)fread($fp, filesize($my_file));
ftruncate($fp, 0);
fseek($fp, 0);
fwrite($fp, $count + 1);
flock($fp, LOCK_UN);
fclose($fp);
/* PHP incrementing code from http://stackoverflow.com/questions/10874950/php-increment-a-counting-variable-in-a-text-file */
?>
</font></small>
</div>
This page has been accessed at least
times since the counter was last reset,
or 12-27-12,
whichever is more recent.
Posted 12-26-12 12:33 am by Sam Bowne
Counters added 12-27-12 9:39 am
Counter script modified to be thread-proof 12-27-12 11:54 am
Weekly log added 10:04 pm 12-27-12
Graph added 12:15 pm 1-20-13