We have about 15 computers with the same ip. We only want the site to be accessible inside our house.
On each page i have this code:
if ($_SERVER['REMOTE_ADDR'] == 'our ip') {
content
}
its works but i was just wondering if theres a more elegant,smarter way?
We use WAMP.