I have public website with no database (with static content). I have one admin page, which allows to edit static content. I want to use that page only when website is on my local computer but not when it's uploaded to hosting server.
Is it safe to add check in admin page for
$_SERVER['SERVER_NAME'] to be equal to