Browse Source

Create ip.php

master
Chase Hall 8 months ago
committed by GitHub
parent
commit
e39e6e178f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions
  1. + 10
    - 0
      ip.php

+ 10
- 0
ip.php

@ -0,0 +1,10 @@
<?php
// My local network breaks this script, so just forward to icanhazip since they can deal with it.
if($_SERVER["REMOTE_ADDR"]=='192.168.86.1'){
header("Location: https://icanhazip.com");
exit();
}
else{
echo $_SERVER['REMOTE_ADDR'];
}
?>

Loading…
Cancel
Save