lukeurtnowski — 2013-10-21T15:33:39-04:00 — #1
I have a nice php page which I guess anyone can run. I want to make it so that only I can run it
heres my page,
So im thinking I need to make sure the page im coming from is mine and in order to ensure its coming from my computer (Is there a way to also check the IP address?
john_betong — 2013-10-21T19:09:44-04:00 — #2
Try testing for $SERVER['REQUESTURI']
cups — 2013-10-22T05:11:35-04:00 — #3
This is really a poormans check, but I had used this for years ....
On your C:\ drive put an empty file named local.flag
echo 'this will only run locally';
starlion — 2013-10-22T08:16:03-04:00 — #4
Or just put this script in a location not accessible to the outside world.
txt3rob — 2013-10-25T06:08:33-04:00 — #5
.htaccess for your ip only?