security/core#97 Ensure that php scripts where applicable in sql and tools that shoul...
[civicrm-core.git] / tools / bin / scripts / NormalizePhone.php
index 795f1296292d1c9411e296c3634620b8888941e6..35a6526f09ad39308ae68efe58eab296f58cd2a6 100644 (file)
  * issues
  *
  */
-
+if (php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0)) {
+  header("HTTP/1.0 404 Not Found");
+  return;
+}
 define('THROTTLE_REQUESTS', 0);
 function run() {
   session_start();