diff --git a/SECURITY.md b/SECURITY.md index bb0b354..a9e4490 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,10 +6,7 @@ Even if you do not use a sponsor-only security module, the default security in o Please note that this program is for those who want better security than the default. ## Related files -- helper/sec-fw.lnk.php -- helper/sec-ddos.lnk.php -- helper/sec-ws.lnk.php -- helper/sec-scc.lnk.php +- helper/securitytool.lnk.php ## Minimum tier - 4 USD/monthly (Special thanks + Up to contributors) diff --git a/cli.php b/cli.php index e10c7ef..797504d 100644 --- a/cli.php +++ b/cli.php @@ -12,6 +12,7 @@ define("_DEF_VSPF_", true); // compatible to VSPF define("_DEF_RSF_", true); // compatible to RSF define("APP_DEVELOPMENT", false); // set the status of development define("DOC_EOL", "\r\n"); // set the 'end of line' commonly +define("SECURITY_VENDOR", false); // advanced security: set security vendor(company) code // check if current status is development if(APP_DEVELOPMENT == true) { diff --git a/index.php b/index.php index 76f37cb..b4640ce 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,7 @@ define("_DEF_VSPF_", true); // compatible to VSPF define("_DEF_RSF_", true); // compatible to RSF define("APP_DEVELOPMENT", false); // set the status of development define("DOC_EOL", "\r\n"); // set the 'end of line' commonly -define("CORS_DOMAINS", false); // common security: allow origin domains +define("CORS_DOMAIN", false); // common security: allow origin domains define("SECURITY_VENDOR", false); // advanced security: set security vendor(company) code // check if current status is development @@ -23,8 +23,8 @@ if(APP_DEVELOPMENT == true) { } // CORS Security (https or http) -if(CORS_DOMAINS !== false) { - $domains = explode(",", CORS_DOMAINS); +if(CORS_DOMAIN !== false) { + $domains = explode(",", CORS_DOMAIN); $_origin = array_key_exists("HTTP_ORIGIN", $_SERVER) ? $_SERVER['HTTP_ORIGIN'] : ""; $origins = array(); if(!in_array("*", $domains)) {