Allow Script to run only on one Server IP

时间:2018-09-18 19:46:52

标签: php

Is it possible to allow to run the script only on one Server IP with PHP? Like an License for one User / Domain.

Can i use this line of Code to get the Server IP and block all other?:

$_SERVER['SERVER_ADDR'];

If someone copy the script to an other servers ip its redirect to an other Page. Just an Testing Script.

Thanks

0 个答案:

没有答案