0
Easy Way To Hide Your Site From Everyone But You And Your Clients
By adding this little snippet of code to the very top of your header.php file, you can make your site hidden to everyone that doesn’t know to add ?beta=on to the end of the urls. You must add that to the url in order to see whatever page your on, ie: http://mysite.com/page-name/?beta=on. Use this little trick to make a site in development viewable by only you, or your clients.
<?php
$allow = $_GET['beta'];
if ($allow != "on") {
echo "Nothing to see here.";
die();
}
?>
Levels: Syntax: PHP





