Detect Tor, I2P, and CJDNS connections and show "via X" in header
This commit is contained in:
parent
b997c6fec4
commit
e60c637efa
@ -3,7 +3,21 @@
|
||||
|
||||
<!-- Logo -->
|
||||
<div class="logo">
|
||||
<a href="./home.php"><strong>Don't Sell.Me</strong> <span class="extra">by Netsyms Technologies</span></a>
|
||||
<a href="./home.php"><strong>Don't Sell.Me</strong> <span class="extra">by Netsyms Technologies<?php
|
||||
if (strpos($_SERVER['HTTP_HOST'], ".onion") !== FALSE) {
|
||||
?>
|
||||
<span style="color: purple; font-weight: 400;">| via Tor</span>
|
||||
<?php
|
||||
} else if (strpos($_SERVER['HTTP_HOST'], ".i2p") !== FALSE) {
|
||||
?>
|
||||
<span style="color: green; font-weight: 400;">| via I2P</span>
|
||||
<?php
|
||||
} else if (strpos($_SERVER['HTTP_HOST'], "mesh.dontsell.me") !== FALSE) {
|
||||
?>
|
||||
<span style="color: blue; font-weight: 400;">| via CJDNS</span>
|
||||
<?php
|
||||
}
|
||||
?></span></a>
|
||||
</div>
|
||||
|
||||
<?php include __DIR__ . '/nav.php'; ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user