ThomasJSmart
Programmer
- Sep 16, 2002
- 634
is protecting a webpage with the following code safe?
<?
if ($_SERVER['REMOTE_ADDR'] != "12.345.67.89"{ exit;}
?>
i only need to acces this page from my home computer and i have a static IP address. The content of the page is for me only so is this a safe way of protecting my page?
thanks,
Thomas
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
<?
if ($_SERVER['REMOTE_ADDR'] != "12.345.67.89"{ exit;}
?>
i only need to acces this page from my home computer and i have a static IP address. The content of the page is for me only so is this a safe way of protecting my page?
thanks,
Thomas
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!