Permalink
Browse files

ログイン画面のスパム対策

  • Loading branch information...
1 parent cb0be2a commit 398ed4fbe36b08d85e5b08daedd0494d27541c50 @yama yama committed Nov 9, 2015
Showing with 9 additions and 0 deletions.
  1. +5 −0 manager/includes/accesscontrol.inc.php
  2. +4 −0 manager/processors/login.processor.php
@@ -1,6 +1,11 @@
<?php
if(!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE != 'true') exit();
+if(!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
+ header('HTTP/1.0 404 Not Found');
+ exit;
+}
+
if (isset($_SESSION['mgrValidated']) && $_SESSION['usertype']!=='manager')
{
@session_destroy();
@@ -1,4 +1,8 @@
<?php
+if(!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
+ header('HTTP/1.0 404 Not Found');exit;
+}
+
$self = 'manager/processors/login.processor.php';
$base_path = str_replace($self,'',str_replace('\\','/',__FILE__));
define('IN_MANAGER_MODE', 'true');

0 comments on commit 398ed4f

Please sign in to comment.