Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>What is my IP?</title>
- <meta charset="utf-8">
- <link rel="stylesheet" href="style.css">
- </head>
- <body>
- <header>
- <h2>What is my IP?</h2>
- </header>
- <section>
- <nav>
- <img src="https://styleguide.torproject.org/static/images/black.svg">
- </nav>
- <article>
- <?php
- // https://www.tutorialspoint.com/sqlite/sqlite_php.htm
- ini_set('display_errors', 0);
- ini_set('display_errors', false);
- class MyDB extends SQLite3 {function __construct() {$this->open('test.db');}}
- $db = new MyDB();
- echo "<h2>".$_SERVER["REMOTE_ADDR"]."</h2>";
- echo "<h1>".$_SERVER["HTTP_USER_AGENT"]."</h1>";
- $sql = "INSERT INTO browsers (useragent) VALUES ('".$_SERVER["HTTP_USER_AGENT"]."');";
- $ret = $db->exec($sql);
- $db->close();
- ?>
- </article>
- </section>
- <footer>
- <p>Stay safe and hide your IP address with <a href="https://www.torproject.org/" target="_blank">Tor Browser</a>.</p>
- </footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment