在构造函数中,您可以使用
if ($_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']){ $this->output->set_status_header(400, 'No Remote Access Allowed'); exit; //just for good measure}但是,如果此方法不是您要查找的..使用
.htaccess,则可以执行Google快速搜索以返回特定示例,以拒绝所有人执行get /
post,然后允许127.0.0.1/localhost。



