The Config files are now forbidden and the system can set a API Key we send on all requests, and can only be changed WITH the active key. Keep in mind once you set the AuthToken no API calls will work without it added like &token=codeheretosend
https://github.com/1mbsite/nodehost-proxy
?api=check_active_ssl
?api=get_proxy_version
?api=get_proxy_username
?api=get_proxy_rules_wwwredirect
?api=get_proxy_rules_cache
Will only return true or false not the code.
?api=get_proxy_authtoken
?api=set_proxy_username&username=newusername
Values can be www to redirect to www, false to do no redirects, and root to redirect from www to root every time.
?api=set_proxy_rules_wwwredirect&rule=www
?api=set_proxy_rules_cache&rule=true
?api=set_proxy_authtoken&token=codeheretosend
?api=set_proxy_authtoken&token=codeheretosend&oldtoken=theoldcode
$authcode = $_SERVER['HTTP_X_AUTHTOKEN'];
Will be true or false as a string so match if ($fromnh=="true"){}
.
$fromnh = $_SERVER['HTTP_X_PROXY_REFNH'];