SiteGuard WP Plugin - Version 1.1.0

Version Description

  • Add the "Login Alert" feature
  • Add the function of inform the new Login page URL by e-mail
  • Fix bug that work "Fail Once" even when the password is a mistake
  • Fix bug that even if the "Rename Login" has been enabled, and have specified a permanent link to the non-standard, jump to the new login page in /login
Download this release

Release Info

Developer jp-secure
Plugin Icon 128x128 SiteGuard WP Plugin
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.6 to 1.1.0

admin/siteguard-menu-dashboard.php CHANGED
@@ -17,9 +17,10 @@ class SiteGuard_Menu_Dashboard extends SiteGuard_Base {
17
  $captcha_enable = $config->get( 'captcha_enable' );
18
  $same_error_enable = $config->get( 'same_login_error' );
19
  $loginlock_enable = $config->get( 'loginlock_enable' );
 
20
  $fail_once_enable = $config->get( 'loginlock_fail_once' );
21
  $disable_pingback_enable = $config->get( 'disable_pingback_enable' );
22
- $waf_exclude_rule_enable = $config->get( 'waf_exclude_rule_enable' );
23
  echo '<div class="wrap">';
24
  echo '<img src="' . $img_path . 'sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
25
  echo '<h2>' . esc_html__( 'Dashboard', 'siteguard' ) . "</h2>\n";
@@ -56,6 +57,11 @@ class SiteGuard_Menu_Dashboard extends SiteGuard_Base {
56
  <td><?php esc_html_e( 'The connection source which repeats login failure is being locked within a certain period.', 'siteguard' ) ?></td>
57
  </tr><tr>
58
  <th scope="row">
 
 
 
 
 
59
  <img src=<?php echo '"' . $img_path . ( $fail_once_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
60
  <a href="?page=siteguard_fail_once"><?php esc_html_e( 'Fail once', 'siteguard' ) ?></a></th>
61
  <td><?php esc_html_e( 'The first login must fail even if the input is correct.', 'siteguard' ) ?></td>
17
  $captcha_enable = $config->get( 'captcha_enable' );
18
  $same_error_enable = $config->get( 'same_login_error' );
19
  $loginlock_enable = $config->get( 'loginlock_enable' );
20
+ $loginalert_enable = $config->get( 'loginalert_enable' );
21
  $fail_once_enable = $config->get( 'loginlock_fail_once' );
22
  $disable_pingback_enable = $config->get( 'disable_pingback_enable' );
23
+ $waf_exclude_rule_enable = $config->get( 'waf_exclude_rule_enable' );
24
  echo '<div class="wrap">';
25
  echo '<img src="' . $img_path . 'sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
26
  echo '<h2>' . esc_html__( 'Dashboard', 'siteguard' ) . "</h2>\n";
57
  <td><?php esc_html_e( 'The connection source which repeats login failure is being locked within a certain period.', 'siteguard' ) ?></td>
58
  </tr><tr>
59
  <th scope="row">
60
+ <img src=<?php echo '"' . $img_path . ( $loginalert_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
61
+ <a href="?page=siteguard_login_alert"><?php esc_html_e( 'Login Alert', 'siteguard' ) ?></a></th>
62
+ <td><?php esc_html_e( 'E-mail notifies that there was login.', 'siteguard' ) ?></td>
63
+ </tr><tr>
64
+ <th scope="row">
65
  <img src=<?php echo '"' . $img_path . ( $fail_once_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
66
  <a href="?page=siteguard_fail_once"><?php esc_html_e( 'Fail once', 'siteguard' ) ?></a></th>
67
  <td><?php esc_html_e( 'The first login must fail even if the input is correct.', 'siteguard' ) ?></td>
admin/siteguard-menu-init.php CHANGED
@@ -18,6 +18,7 @@ class SiteGuard_Menu_INIT extends SiteGuard_Base {
18
  add_submenu_page( 'siteguard', esc_html__( 'CAPTCHA', 'siteguard' ), esc_html__( 'CAPTCHA', 'siteguard' ), 'manage_options', 'siteguard_captcha', array( $this, 'menu_captcha' ) );
19
  add_submenu_page( 'siteguard', esc_html__( 'Same Login Error Message', 'siteguard' ), esc_html__( 'Same Login Error Message', 'siteguard' ), 'manage_options', 'siteguard_same_error', array( $this, 'menu_same_error' ) );
20
  add_submenu_page( 'siteguard', esc_html__( 'Login Lock', 'siteguard' ), esc_html__( 'Login Lock', 'siteguard' ), 'manage_options', 'siteguard_login_lock', array( $this, 'menu_login_lock' ) );
 
21
  add_submenu_page( 'siteguard', esc_html__( 'Fail once', 'siteguard' ), esc_html__( 'Fail once', 'siteguard' ), 'manage_options', 'siteguard_fail_once', array( $this, 'menu_fail_once' ) );
22
  add_submenu_page( 'siteguard', esc_html__( 'Disable Pingback', 'siteguard' ), esc_html__( 'Disable Pingback', 'siteguard' ), 'manage_options', 'siteguard_disable_pingback', array( $this, 'menu_disable_pingback' ) );
23
  add_submenu_page( 'siteguard', esc_html__( 'WAF Tuning Support', 'siteguard' ), esc_html__( 'WAF Tuning Support', 'siteguard' ), 'manage_options', 'siteguard_waf_tuning_support', array( $this, 'menu_waf_tuning_support' ) );
@@ -47,6 +48,10 @@ class SiteGuard_Menu_INIT extends SiteGuard_Base {
47
  include( 'siteguard-menu-login-lock.php' );
48
  $login_lock_menu = new SiteGuard_Menu_Login_Lock( );
49
  }
 
 
 
 
50
  function menu_fail_once( ) {
51
  include( 'siteguard-menu-fail-once.php' );
52
  $fail_once_menu = new SiteGuard_Menu_Fail_Once( );
18
  add_submenu_page( 'siteguard', esc_html__( 'CAPTCHA', 'siteguard' ), esc_html__( 'CAPTCHA', 'siteguard' ), 'manage_options', 'siteguard_captcha', array( $this, 'menu_captcha' ) );
19
  add_submenu_page( 'siteguard', esc_html__( 'Same Login Error Message', 'siteguard' ), esc_html__( 'Same Login Error Message', 'siteguard' ), 'manage_options', 'siteguard_same_error', array( $this, 'menu_same_error' ) );
20
  add_submenu_page( 'siteguard', esc_html__( 'Login Lock', 'siteguard' ), esc_html__( 'Login Lock', 'siteguard' ), 'manage_options', 'siteguard_login_lock', array( $this, 'menu_login_lock' ) );
21
+ add_submenu_page( 'siteguard', esc_html__( 'Login Alert', 'siteguard' ), esc_html__( 'Login Alert', 'siteguard' ), 'manage_options', 'siteguard_login_alert', array( $this, 'menu_login_alert' ) );
22
  add_submenu_page( 'siteguard', esc_html__( 'Fail once', 'siteguard' ), esc_html__( 'Fail once', 'siteguard' ), 'manage_options', 'siteguard_fail_once', array( $this, 'menu_fail_once' ) );
23
  add_submenu_page( 'siteguard', esc_html__( 'Disable Pingback', 'siteguard' ), esc_html__( 'Disable Pingback', 'siteguard' ), 'manage_options', 'siteguard_disable_pingback', array( $this, 'menu_disable_pingback' ) );
24
  add_submenu_page( 'siteguard', esc_html__( 'WAF Tuning Support', 'siteguard' ), esc_html__( 'WAF Tuning Support', 'siteguard' ), 'manage_options', 'siteguard_waf_tuning_support', array( $this, 'menu_waf_tuning_support' ) );
48
  include( 'siteguard-menu-login-lock.php' );
49
  $login_lock_menu = new SiteGuard_Menu_Login_Lock( );
50
  }
51
+ function menu_login_alert( ) {
52
+ include( 'siteguard-menu-login-alert.php' );
53
+ $login_alert_menu = new SiteGuard_Menu_Login_Alert( );
54
+ }
55
  function menu_fail_once( ) {
56
  include( 'siteguard-menu-fail-once.php' );
57
  $fail_once_menu = new SiteGuard_Menu_Fail_Once( );
admin/siteguard-menu-login-alert.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SiteGuard_Menu_Login_Alert extends SiteGuard_Base {
4
+ function __construct( ) {
5
+ $this->render_page( );
6
+ }
7
+ function check_recipient( $recipient ) {
8
+ switch ( $recipient ) {
9
+ case '1':
10
+ case '2':
11
+ case '3':
12
+ return true;
13
+ default:
14
+ return false;
15
+ }
16
+ }
17
+ function render_page( ) {
18
+ global $config;
19
+
20
+ $opt_name_feature = 'loginalert_enable';
21
+ $opt_name_subject = 'loginalert_subject';
22
+ $opt_name_body = 'loginalert_body';
23
+ $opt_name_admin = 'loginalert_admin_only';
24
+
25
+ $opt_val_feature = $config->get( $opt_name_feature );
26
+ $opt_val_subject = $config->get( $opt_name_subject );
27
+ $opt_val_body = $config->get( $opt_name_body );
28
+ $opt_val_admin = $config->get( $opt_name_admin );
29
+ if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-login-alert-submit' ) ) {
30
+ $error = false;
31
+ if ( false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
32
+ echo '<div class="error settings-error"><p><strong>';
33
+ esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
34
+ echo '</strong></p></div>';
35
+ $error = true;
36
+ }
37
+ if ( false == $error ) {
38
+ $opt_val_feature = $_POST[ $opt_name_feature ];
39
+ $opt_val_subject = $_POST[ $opt_name_subject ];
40
+ $opt_val_body = $_POST[ $opt_name_body ];
41
+ if ( isset( $_POST[ $opt_name_admin ] ) ) {
42
+ $opt_val_admin = $_POST[ $opt_name_admin ];
43
+ } else {
44
+ $opt_val_admin = '0';
45
+ }
46
+ $config->set( $opt_name_feature, $opt_val_feature );
47
+ $config->set( $opt_name_subject, $opt_val_subject );
48
+ $config->set( $opt_name_body, $opt_val_body );
49
+ $config->set( $opt_name_admin, $opt_val_admin );
50
+ $config->update( );
51
+ ?>
52
+ <div class="updated"><p><strong><?php esc_html_e( 'Options saved.', 'siteguard' ); ?></strong></p></div>
53
+ <?php
54
+ }
55
+ }
56
+
57
+ echo '<div class="wrap">';
58
+ echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
59
+ echo '<h2>' . esc_html__( 'Login Alert', 'siteguard' ) . '</h2>';
60
+ ?>
61
+ <form name="form1" method="post" action="">
62
+ <table class="form-table">
63
+ <tr>
64
+ <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
65
+ <td>
66
+ <ul class="siteguard-radios">
67
+ <li>
68
+ <input type="radio" name="<?php echo $opt_name_feature ?>" id="<?php echo $opt_name_feature.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_feature ? 'checked' : '') ?> >
69
+ <label for="<?php echo $opt_name_feature.'_on' ?>"><?php echo esc_html_e( 'ON', 'siteguard' ) ?></label>
70
+ </li><li>
71
+ <input type="radio" name="<?php echo $opt_name_feature ?>" id="<?php echo $opt_name_feature.'_off' ?>" value="0" <?php echo ( '0' == $opt_val_feature ? 'checked' : '') ?> >
72
+ <label for="<?php echo $opt_name_feature.'_off' ?>"><?php echo esc_html_e( 'OFF', 'siteguard' ) ?></label>
73
+ </li>
74
+ </ul>
75
+ </td>
76
+ </tr><tr>
77
+ <th scope="row"><label for="<?php echo $opt_name_subject ?>"><?php esc_html_e( 'Subject', 'siteguard' ); ?></label></th>
78
+ <td>
79
+ <input type="text" name="<?php echo $opt_name_subject ?>" id="<?php echo $opt_name_subject ?>" size="50" value="<?php echo esc_attr( $opt_val_subject ) ?>" >
80
+ </td>
81
+ </tr><tr>
82
+ <th scope="row"><label for="<?php echo $opt_name_body ?>"><?php esc_html_e( 'Body', 'siteguard' ); ?></label></th>
83
+ <td>
84
+ <textarea name="<?php echo $opt_name_body ?>" id="<?php echo $opt_name_body ?>" cols="50" rows="5" ><?php echo esc_textarea( $opt_val_body ) ?></textarea>
85
+ </td>
86
+ </tr><tr>
87
+ <th scope="row"><?php esc_html_e( 'Recipients', 'siteguard' ) ?></th>
88
+ <td>
89
+ <input type="checkbox" name="<?php echo $opt_name_admin ?>" id="<?php echo $opt_name_admin ?>" value="1" <?php echo ( '1' == $opt_val_admin ? 'checked' : '' ) ?> >
90
+ <label for="<?php echo $opt_name_admin ?>"><?php esc_html_e( 'Admin only', 'siteguard' ) ?></label>
91
+ </td>
92
+ </tr>
93
+ </table>
94
+ <input type="hidden" name="update" value="Y">
95
+ <div class="siteguard-description">
96
+ <?php esc_html_e( 'It is the function to make it easier to notice unauthorized login. E-mail will be sent to a login user when logged in. If you receive an e-mail to there is no logged-in idea, please suspect unauthorized login. The subject and the mail body, the following variables can be used. (Site Name:%SITENAME%, User Name:%USERNAME%, DATE:%DATE%, Time:%TIME%)', 'siteguard' ) ?>
97
+ </div>
98
+ <hr />
99
+ <?php
100
+ wp_nonce_field( 'siteguard-menu-login-alert-submit' );
101
+ submit_button( );
102
+ ?>
103
+ </form>
104
+ </div>
105
+ <?php
106
+ }
107
+ }
108
+
109
+ ?>
admin/siteguard-menu-rename-login.php CHANGED
@@ -68,6 +68,7 @@ class SiteGuard_Menu_Rename_Login extends SiteGuard_Base {
68
  $rename_login->feature_off( );
69
  } else {
70
  $rename_login->feature_on( );
 
71
  }
72
  ?>
73
  <div class="updated"><p><strong><?php esc_html_e( 'Options saved.', 'siteguard' ); ?></strong></p></div>
68
  $rename_login->feature_off( );
69
  } else {
70
  $rename_login->feature_on( );
71
+ $rename_login->send_notify( );
72
  }
73
  ?>
74
  <div class="updated"><p><strong><?php esc_html_e( 'Options saved.', 'siteguard' ); ?></strong></p></div>
classes/siteguard-login-alert.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SiteGuard_LoginAlert extends SiteGuard_Base {
4
+ function __construct( ) {
5
+ global $config;
6
+ if ( '1' == $config->get( 'loginalert_enable' ) ) {
7
+ add_action( 'wp_login', array( $this, 'handler_wp_login' ), 10, 2 );
8
+ }
9
+ }
10
+ function init( ) {
11
+ global $config;
12
+ $config->set( 'loginalert_enable', '1' );
13
+ $config->set( 'loginalert_admin_only', '1' );
14
+ $config->set( 'loginalert_subject', __( 'New login at %SITENAME%', 'siteguard' ) );
15
+ $config->set( 'loginalert_body', __( "%USERNAME% logged in at %DATE% %TIME%\n\n--\nSiteGuard WP Plugin", 'siteguard' ) );
16
+ $config->update( );
17
+ }
18
+ function replace_valuable( $string, $username ) {
19
+ return str_replace( array( '%SITENAME%', '%USERNAME%', '%DATE%', '%TIME%' ), array( get_option('blogname'), $username, date( 'Y-m-d', current_time('timestamp') ), date( 'H:i:s', current_time('timestamp') ) ), $string);
20
+ }
21
+ function handler_wp_login( $username, $user ) {
22
+ global $config;
23
+
24
+ if ( ( '1' == $config->get('loginalert_admin_only') ) && ( ! $user->has_cap('administrator') ) ) {
25
+ return;
26
+ }
27
+
28
+ $user_email = $user->get('user_email');
29
+
30
+ $subject = $config->get('loginalert_subject');
31
+ $body = $config->get('loginalert_body');
32
+
33
+ $subject = $this->replace_valuable( $subject, $username );
34
+ $body = $this->replace_valuable( $body, $username );
35
+
36
+ @wp_mail( $user_email, esc_html( $subject), esc_html( $body ) );
37
+
38
+ return;
39
+ }
40
+ }
41
+
42
+ ?>
classes/siteguard-login-lock.php CHANGED
@@ -103,6 +103,9 @@ class SiteGuard_LoginLock extends SiteGuard_Base {
103
  if ( is_wp_error( $user ) ) {
104
  return $user;
105
  }
 
 
 
106
  if ( '1' == $config->get( 'fail_once_admin_only' ) ) {
107
  if ( ! $user->has_cap( 'administrator' ) ) {
108
  return $user;
103
  if ( is_wp_error( $user ) ) {
104
  return $user;
105
  }
106
+ if ( !wp_check_password($password, $user->user_pass, $user->ID) ) {
107
+ return $user;
108
+ }
109
  if ( '1' == $config->get( 'fail_once_admin_only' ) ) {
110
  if ( ! $user->has_cap( 'administrator' ) ) {
111
  return $user;
classes/siteguard-rename-login.php CHANGED
@@ -48,7 +48,7 @@ class SiteGuard_RenameLogin extends SiteGuard_Base {
48
  add_filter( 'network_site_url', array( $this, 'handler_site_url' ), 10, 2 );
49
  add_filter( 'wp_redirect', array( $this, 'handler_wp_redirect' ), 10, 2 );
50
  add_filter( 'register', array( $this, 'handler_register' ) );
51
- #remove_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );
52
  }
53
  function handler_login_init( ) {
54
  global $config;
@@ -139,6 +139,18 @@ class SiteGuard_RenameLogin extends SiteGuard_Base {
139
  }
140
  die;
141
  }
 
 
 
 
 
 
 
 
 
 
 
 
142
  }
143
 
144
  ?>
48
  add_filter( 'network_site_url', array( $this, 'handler_site_url' ), 10, 2 );
49
  add_filter( 'wp_redirect', array( $this, 'handler_wp_redirect' ), 10, 2 );
50
  add_filter( 'register', array( $this, 'handler_register' ) );
51
+ remove_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );
52
  }
53
  function handler_login_init( ) {
54
  global $config;
139
  }
140
  die;
141
  }
142
+ function send_notify( ) {
143
+ global $config;
144
+ $subject = esc_html__( 'WordPress: Login page URL was changed', 'siteguard' );
145
+ $body = sprintf( esc_html__( "Please bookmark following of the new login URL.\n\n%s\n\n--\nSiteGuard WP Plugin", 'siteguard' ), site_url( ) . '/' . $config->get( 'renamelogin_path' ) );
146
+
147
+ $user_query = new WP_User_Query( array( 'role' => 'Administrator' ) );
148
+ if ( ! empty( $user_query->results ) ) {
149
+ foreach ( $user_query->results as $user ) {
150
+ @wp_mail( $user->get('user_email'), $subject, $body );
151
+ }
152
+ }
153
+ }
154
  }
155
 
156
  ?>
languages/siteguard-ja.mo CHANGED
Binary file
languages/siteguard-ja.po CHANGED
@@ -221,6 +221,9 @@ msgstr "ログインページ変更"
221
  msgid "Login Lock"
222
  msgstr "ログインロック"
223
 
 
 
 
224
  #: admin/siteguard-menu-dashboard.php:51
225
  #: admin/siteguard-menu-disable-pingback.php:23
226
  #: admin/siteguard-menu-init.php:20
@@ -322,6 +325,27 @@ msgstr ""
322
  "1回だけログインが失敗します。"
323
  "5秒以降、60秒以内に再度正しいログイン情報を入力すると、ログインが成功します。"
324
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
325
  #: admin/siteguard-menu-rename-login.php:51
326
  msgid "New Login Path"
327
  msgstr "変更後のログインページ名"
@@ -351,6 +375,12 @@ msgstr ""
351
  "ログインページ(wp-login.php)の名前を変更します。"
352
  "初期値は、「login_&lt;5桁の乱数&gt;」ですが、お好みの名前に変更することができます。"
353
 
 
 
 
 
 
 
354
  #: admin/siteguard-menu-sg-whitelist.php:80
355
  msgid "New rule created"
356
  msgstr "新しいルールを作成しました。"
@@ -528,6 +558,9 @@ msgstr "正しい入力を行っても、ログインを一回失敗します。
528
  msgid "The connection source which repeats login failure is being locked within a certain period."
529
  msgstr "ログイン失敗を繰り返す接続元を一定期間ロックします。"
530
 
 
 
 
531
  #: admin/siteguard-menu-dashboard.php:52
532
  msgid "The abuse of pingback is prevented."
533
  msgstr "ピンバックの悪用を防ぎます。"
221
  msgid "Login Lock"
222
  msgstr "ログインロック"
223
 
224
+ msgid "Login Alert"
225
+ msgstr "ログインアラート"
226
+
227
  #: admin/siteguard-menu-dashboard.php:51
228
  #: admin/siteguard-menu-disable-pingback.php:23
229
  #: admin/siteguard-menu-init.php:20
325
  "1回だけログインが失敗します。"
326
  "5秒以降、60秒以内に再度正しいログイン情報を入力すると、ログインが成功します。"
327
 
328
+ msgid "Subject"
329
+ msgstr "サブジェクト"
330
+
331
+ msgid "Body"
332
+ msgstr "メール本文"
333
+
334
+ msgid "Recipients"
335
+ msgstr "受信者"
336
+
337
+ msgid ""
338
+ "It is the function to make it easier to notice unauthorized login. E-mail will be sent to a login user when logged in. If you receive an e-mail to there is no logged-in idea, please suspect unauthorized login. The subject and the mail body, the following variables can be used. (Site Name:%SITENAME%, User Name:%USERNAME%, DATE:%DATE%, Time:%TIME%)"
339
+
340
+ msgstr ""
341
+ "不正なログインに気づきやすくするための機能です。ログインすると、ログインユーザーにメールが送信されます。ログインした心当たりがないのにメールを受信した場合は、不正なログインを疑ってください。サブジェクトとメール本文には、次の変数が使用できます。(サイト名:%SITENAME%、ユーザ名:%USERNAME%、日付:%DATE%、時刻:%TIME%)"
342
+
343
+ msgid "New login at %SITENAME%"
344
+ msgstr "%SITENAME%にログインがありました"
345
+
346
+ msgid "%USERNAME% logged in at %DATE% %TIME%\n\n--\nSiteGuard WP Plugin"
347
+ msgstr "%DATE% %TIME%に%USERNAME%がログインしました。\n\n--\nSiteGuard WP Plugin"
348
+
349
  #: admin/siteguard-menu-rename-login.php:51
350
  msgid "New Login Path"
351
  msgstr "変更後のログインページ名"
375
  "ログインページ(wp-login.php)の名前を変更します。"
376
  "初期値は、「login_&lt;5桁の乱数&gt;」ですが、お好みの名前に変更することができます。"
377
 
378
+ msgid "WordPress: Login page URL was changed"
379
+ msgstr "WordPress: ログインページURLが変更されました"
380
+
381
+ msgid "Please bookmark following of the new login URL.\n\n%s\n\n--\nSiteGuard WP Plugin"
382
+ msgstr "以下の新しいログインページURLを、ブックマークしてください。\n\n%s\n\n--\nSiteGuard WP Plugin"
383
+
384
  #: admin/siteguard-menu-sg-whitelist.php:80
385
  msgid "New rule created"
386
  msgstr "新しいルールを作成しました。"
558
  msgid "The connection source which repeats login failure is being locked within a certain period."
559
  msgstr "ログイン失敗を繰り返す接続元を一定期間ロックします。"
560
 
561
+ msgid "E-mail notifies that there was login."
562
+ msgstr "ログインがあったことを、メールで通知します。"
563
+
564
  #: admin/siteguard-menu-dashboard.php:52
565
  msgid "The abuse of pingback is prevented."
566
  msgstr "ピンバックの悪用を防ぎます。"
languages/siteguard.pot ADDED
@@ -0,0 +1,671 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 SiteGuard WP Plugin
2
+ # This file is distributed under the same license as the SiteGuard WP Plugin package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: SiteGuard WP Plugin 1.1.0\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/siteguard\n"
7
+ "POT-Creation-Date: 2014-11-14 02:54:50+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: admin/siteguard-login-history-table.php:35
16
+ msgid "Date Time"
17
+ msgstr ""
18
+
19
+ #: admin/siteguard-login-history-table.php:36
20
+ msgid "Operation"
21
+ msgstr ""
22
+
23
+ #: admin/siteguard-login-history-table.php:37
24
+ msgid "Login Name"
25
+ msgstr ""
26
+
27
+ #: admin/siteguard-login-history-table.php:38
28
+ msgid "IP Address"
29
+ msgstr ""
30
+
31
+ #: admin/siteguard-menu-admin-filter.php:32
32
+ #: admin/siteguard-menu-admin-filter.php:86
33
+ #: admin/siteguard-menu-rename-login.php:19
34
+ #: admin/siteguard-menu-rename-login.php:99
35
+ msgid "To use this function, “mod_rewrite” should be loaded on Apache."
36
+ msgstr ""
37
+
38
+ #: admin/siteguard-menu-admin-filter.php:42
39
+ #: admin/siteguard-menu-captcha.php:44
40
+ #: admin/siteguard-menu-disable-pingback.php:16
41
+ #: admin/siteguard-menu-fail-once.php:19
42
+ #: admin/siteguard-menu-login-alert.php:33
43
+ #: admin/siteguard-menu-login-lock.php:44
44
+ #: admin/siteguard-menu-rename-login.php:29
45
+ #: admin/siteguard-menu-same-error.php:26
46
+ #: admin/siteguard-menu-waf-tuning-support.php:143
47
+ #: classes/siteguard-waf-exclude-rule.php:48
48
+ #: classes/siteguard-waf-exclude-rule.php:141
49
+ #: classes/siteguard-waf-exclude-rule.php:147
50
+ msgid "ERROR: Invalid input value."
51
+ msgstr ""
52
+
53
+ #: admin/siteguard-menu-admin-filter.php:60
54
+ #: admin/siteguard-menu-captcha.php:61
55
+ #: admin/siteguard-menu-disable-pingback.php:25
56
+ #: admin/siteguard-menu-fail-once.php:34
57
+ #: admin/siteguard-menu-login-alert.php:52
58
+ #: admin/siteguard-menu-login-lock.php:59
59
+ #: admin/siteguard-menu-rename-login.php:74
60
+ #: admin/siteguard-menu-same-error.php:35
61
+ msgid "Options saved."
62
+ msgstr ""
63
+
64
+ #: admin/siteguard-menu-admin-filter.php:67
65
+ #: admin/siteguard-menu-dashboard.php:36 admin/siteguard-menu-init.php:16
66
+ msgid "Admin Page IP Filter"
67
+ msgstr ""
68
+
69
+ #: admin/siteguard-menu-admin-filter.php:72
70
+ #: admin/siteguard-menu-captcha.php:73
71
+ #: admin/siteguard-menu-disable-pingback.php:38
72
+ #: admin/siteguard-menu-fail-once.php:46
73
+ #: admin/siteguard-menu-login-alert.php:64
74
+ #: admin/siteguard-menu-login-lock.php:71
75
+ #: admin/siteguard-menu-rename-login.php:86
76
+ #: admin/siteguard-menu-same-error.php:47
77
+ #: admin/siteguard-menu-waf-tuning-support.php:194
78
+ msgid "Enable/Disable"
79
+ msgstr ""
80
+
81
+ #: admin/siteguard-menu-admin-filter.php:77
82
+ #: admin/siteguard-menu-captcha.php:78
83
+ #: admin/siteguard-menu-disable-pingback.php:43
84
+ #: admin/siteguard-menu-fail-once.php:51
85
+ #: admin/siteguard-menu-login-alert.php:69
86
+ #: admin/siteguard-menu-login-lock.php:76
87
+ #: admin/siteguard-menu-rename-login.php:91
88
+ #: admin/siteguard-menu-same-error.php:52
89
+ #: admin/siteguard-menu-waf-tuning-support.php:199
90
+ msgid "ON"
91
+ msgstr ""
92
+
93
+ #: admin/siteguard-menu-admin-filter.php:81
94
+ #: admin/siteguard-menu-captcha.php:81
95
+ #: admin/siteguard-menu-disable-pingback.php:46
96
+ #: admin/siteguard-menu-fail-once.php:54
97
+ #: admin/siteguard-menu-login-alert.php:72
98
+ #: admin/siteguard-menu-login-lock.php:79
99
+ #: admin/siteguard-menu-rename-login.php:94
100
+ #: admin/siteguard-menu-same-error.php:55
101
+ #: admin/siteguard-menu-waf-tuning-support.php:202
102
+ msgid "OFF"
103
+ msgstr ""
104
+
105
+ #: admin/siteguard-menu-admin-filter.php:91
106
+ msgid "Exclude Path"
107
+ msgstr ""
108
+
109
+ #: admin/siteguard-menu-admin-filter.php:93
110
+ msgid ""
111
+ "The path of /wp-admin/ henceforth is specified. To specify more than one, "
112
+ "separate them with new line. "
113
+ msgstr ""
114
+
115
+ #: admin/siteguard-menu-admin-filter.php:98
116
+ msgid ""
117
+ "It is the function for the protection against the attack to the management "
118
+ "page (under /wp-admin/.) To the access from the connection source IP address "
119
+ "which does not login to the management page, 404 (Not Found) is returned. At "
120
+ "the login, the connection source IP address is recorded and the access to "
121
+ "that page is allowed. The connection source IP address which does not login "
122
+ "for more than 24 hours is sequentially deleted. The URL (under /wp-admin/) "
123
+ "where this function is excluded can be specified."
124
+ msgstr ""
125
+
126
+ #: admin/siteguard-menu-captcha.php:68 admin/siteguard-menu-dashboard.php:46
127
+ #: admin/siteguard-menu-init.php:18
128
+ msgid "CAPTCHA"
129
+ msgstr ""
130
+
131
+ #: admin/siteguard-menu-captcha.php:94
132
+ msgid "Login page"
133
+ msgstr ""
134
+
135
+ #: admin/siteguard-menu-captcha.php:97 admin/siteguard-menu-captcha.php:109
136
+ #: admin/siteguard-menu-captcha.php:121 admin/siteguard-menu-captcha.php:133
137
+ msgid "Hiragana (Japanese)"
138
+ msgstr ""
139
+
140
+ #: admin/siteguard-menu-captcha.php:100 admin/siteguard-menu-captcha.php:112
141
+ #: admin/siteguard-menu-captcha.php:124 admin/siteguard-menu-captcha.php:136
142
+ msgid "Alphanumeric"
143
+ msgstr ""
144
+
145
+ #: admin/siteguard-menu-captcha.php:103 admin/siteguard-menu-captcha.php:115
146
+ #: admin/siteguard-menu-captcha.php:127 admin/siteguard-menu-captcha.php:139
147
+ msgid "Disable"
148
+ msgstr ""
149
+
150
+ #: admin/siteguard-menu-captcha.php:106
151
+ msgid "Comment page"
152
+ msgstr ""
153
+
154
+ #: admin/siteguard-menu-captcha.php:118
155
+ msgid "Lost password page"
156
+ msgstr ""
157
+
158
+ #: admin/siteguard-menu-captcha.php:130
159
+ msgid "Registration user page"
160
+ msgstr ""
161
+
162
+ #: admin/siteguard-menu-captcha.php:144
163
+ msgid ""
164
+ "It is the function to decrease the vulnerability against an illegal login "
165
+ "attempt attack such as a brute force attack or a password list attack, or to "
166
+ "receive less comment spam. For the character of CAPTCHA, hiragana and "
167
+ "alphanumeric characters can be selected."
168
+ msgstr ""
169
+
170
+ #: admin/siteguard-menu-dashboard.php:26 admin/siteguard-menu-init.php:15
171
+ msgid "Dashboard"
172
+ msgstr ""
173
+
174
+ #: admin/siteguard-menu-dashboard.php:28
175
+ msgid ""
176
+ "You can find docs, FAQ and more detailed information about SiteGuard WP "
177
+ "Plugin on "
178
+ msgstr ""
179
+
180
+ #. #-#-#-#-# siteguard.pot (SiteGuard WP Plugin 1.1.0) #-#-#-#-#
181
+ #. Plugin URI of the plugin/theme
182
+ #: admin/siteguard-menu-dashboard.php:29
183
+ msgid ""
184
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/index_en.html"
185
+ msgstr ""
186
+
187
+ #: admin/siteguard-menu-dashboard.php:29
188
+ msgid "SiteGuard WP Plugin Page"
189
+ msgstr ""
190
+
191
+ #: admin/siteguard-menu-dashboard.php:29
192
+ msgid "."
193
+ msgstr ""
194
+
195
+ #: admin/siteguard-menu-dashboard.php:30
196
+ msgid "Setting status"
197
+ msgstr ""
198
+
199
+ #: admin/siteguard-menu-dashboard.php:37
200
+ msgid ""
201
+ "The management directory (/wp-admin/) is protected against the connection "
202
+ "source which does not login."
203
+ msgstr ""
204
+
205
+ #: admin/siteguard-menu-dashboard.php:41 admin/siteguard-menu-init.php:17
206
+ #: admin/siteguard-menu-rename-login.php:81
207
+ msgid "Rename Login"
208
+ msgstr ""
209
+
210
+ #: admin/siteguard-menu-dashboard.php:42
211
+ msgid "The login page name is changed."
212
+ msgstr ""
213
+
214
+ #: admin/siteguard-menu-dashboard.php:47
215
+ msgid "CAPTCHA is added to the login page or comment post."
216
+ msgstr ""
217
+
218
+ #: admin/siteguard-menu-dashboard.php:51 admin/siteguard-menu-init.php:19
219
+ #: admin/siteguard-menu-same-error.php:42
220
+ msgid "Same Login Error Message"
221
+ msgstr ""
222
+
223
+ #: admin/siteguard-menu-dashboard.php:52
224
+ msgid ""
225
+ "Instead of the detailed error message at the login error, the single message "
226
+ "is returned."
227
+ msgstr ""
228
+
229
+ #: admin/siteguard-menu-dashboard.php:56 admin/siteguard-menu-init.php:20
230
+ #: admin/siteguard-menu-login-lock.php:66
231
+ msgid "Login Lock"
232
+ msgstr ""
233
+
234
+ #: admin/siteguard-menu-dashboard.php:57
235
+ msgid ""
236
+ "The connection source which repeats login failure is being locked within a "
237
+ "certain period."
238
+ msgstr ""
239
+
240
+ #: admin/siteguard-menu-dashboard.php:61 admin/siteguard-menu-init.php:21
241
+ #: admin/siteguard-menu-login-alert.php:59
242
+ msgid "Login Alert"
243
+ msgstr ""
244
+
245
+ #: admin/siteguard-menu-dashboard.php:62
246
+ msgid "E-mail notifies that there was login."
247
+ msgstr ""
248
+
249
+ #: admin/siteguard-menu-dashboard.php:66 admin/siteguard-menu-fail-once.php:41
250
+ #: admin/siteguard-menu-init.php:22 classes/siteguard-login-history.php:95
251
+ msgid "Fail once"
252
+ msgstr ""
253
+
254
+ #: admin/siteguard-menu-dashboard.php:67
255
+ msgid "The first login must fail even if the input is correct."
256
+ msgstr ""
257
+
258
+ #: admin/siteguard-menu-dashboard.php:71
259
+ #: admin/siteguard-menu-disable-pingback.php:32
260
+ #: admin/siteguard-menu-init.php:23
261
+ msgid "Disable Pingback"
262
+ msgstr ""
263
+
264
+ #: admin/siteguard-menu-dashboard.php:72
265
+ msgid "The abuse of pingback is prevented."
266
+ msgstr ""
267
+
268
+ #: admin/siteguard-menu-dashboard.php:76 admin/siteguard-menu-init.php:24
269
+ #: admin/siteguard-menu-waf-tuning-support.php:189
270
+ msgid "WAF Tuning Support"
271
+ msgstr ""
272
+
273
+ #: admin/siteguard-menu-dashboard.php:77
274
+ msgid "The exclude rule for WAF (SiteGuard Lite) is created."
275
+ msgstr ""
276
+
277
+ #: admin/siteguard-menu-dashboard.php:82
278
+ msgid "Login history"
279
+ msgstr ""
280
+
281
+ #: admin/siteguard-menu-disable-pingback.php:54
282
+ msgid "The pingback function is disabled and its abuse is prevented."
283
+ msgstr ""
284
+
285
+ #: admin/siteguard-menu-fail-once.php:60
286
+ msgid "Target user"
287
+ msgstr ""
288
+
289
+ #: admin/siteguard-menu-fail-once.php:63
290
+ #: admin/siteguard-menu-login-alert.php:90
291
+ msgid "Admin only"
292
+ msgstr ""
293
+
294
+ #: admin/siteguard-menu-fail-once.php:69
295
+ msgid ""
296
+ "It is the function to decrease the vulnerability against a password list "
297
+ "attack. Even is the login input is correct, the first login must fail. After "
298
+ "5 seconds and later within 60 seconds, another correct login input make "
299
+ "login succeed. At the first login failure, the following error message is "
300
+ "displayed."
301
+ msgstr ""
302
+
303
+ #: admin/siteguard-menu-init.php:14
304
+ msgid "SiteGuard"
305
+ msgstr ""
306
+
307
+ #: admin/siteguard-menu-login-alert.php:77
308
+ msgid "Subject"
309
+ msgstr ""
310
+
311
+ #: admin/siteguard-menu-login-alert.php:82
312
+ msgid "Body"
313
+ msgstr ""
314
+
315
+ #: admin/siteguard-menu-login-alert.php:87
316
+ msgid "Recipients"
317
+ msgstr ""
318
+
319
+ #: admin/siteguard-menu-login-alert.php:96
320
+ msgid ""
321
+ "It is the function to make it easier to notice unauthorized login. E-mail "
322
+ "will be sent to each to login. If you receive an e-mail to there is no "
323
+ "logged-in idea, please suspect unauthorized login. The subject and the mail "
324
+ "body, the following variables can be used. (Site Name:%SITENAME%, User Name:"
325
+ "%USERNAME%, DATE:%DATE%, Time:%TIME%)"
326
+ msgstr ""
327
+
328
+ #: admin/siteguard-menu-login-lock.php:84
329
+ msgid "Interval"
330
+ msgstr ""
331
+
332
+ #: admin/siteguard-menu-login-lock.php:87
333
+ msgid "1 second"
334
+ msgstr ""
335
+
336
+ #: admin/siteguard-menu-login-lock.php:90
337
+ msgid "5 seconds"
338
+ msgstr ""
339
+
340
+ #: admin/siteguard-menu-login-lock.php:93
341
+ #: admin/siteguard-menu-login-lock.php:111
342
+ msgid "30 seconds"
343
+ msgstr ""
344
+
345
+ #: admin/siteguard-menu-login-lock.php:96
346
+ msgid "Threshold"
347
+ msgstr ""
348
+
349
+ #: admin/siteguard-menu-login-lock.php:99
350
+ msgid "3 times"
351
+ msgstr ""
352
+
353
+ #: admin/siteguard-menu-login-lock.php:102
354
+ msgid "10 times"
355
+ msgstr ""
356
+
357
+ #: admin/siteguard-menu-login-lock.php:105
358
+ msgid "100 times"
359
+ msgstr ""
360
+
361
+ #: admin/siteguard-menu-login-lock.php:108
362
+ msgid "Lock Time"
363
+ msgstr ""
364
+
365
+ #: admin/siteguard-menu-login-lock.php:114
366
+ msgid "1 minute"
367
+ msgstr ""
368
+
369
+ #: admin/siteguard-menu-login-lock.php:117
370
+ msgid "5 minutes"
371
+ msgstr ""
372
+
373
+ #: admin/siteguard-menu-login-lock.php:122
374
+ msgid ""
375
+ "It is the function to decrease the vulnerability against an illegal login "
376
+ "attempt attack such as a brute force attack or a password list attack. "
377
+ "Especially, it is the function to prevent an automated attack. The "
378
+ "connection source IP address the number of login failure of which reaches "
379
+ "the specified number within the specified period is blocked for the "
380
+ "specified time. Each user account is not locked."
381
+ msgstr ""
382
+
383
+ #: admin/siteguard-menu-rename-login.php:37
384
+ msgid "This function and Plugin \""
385
+ msgstr ""
386
+
387
+ #: admin/siteguard-menu-rename-login.php:37
388
+ msgid "\" cannot be used at the same time."
389
+ msgstr ""
390
+
391
+ #: admin/siteguard-menu-rename-login.php:49
392
+ msgid ""
393
+ "It is only an alphanumeric character, a hyphen, and an underbar that can be "
394
+ "used for New Login Path."
395
+ msgstr ""
396
+
397
+ #: admin/siteguard-menu-rename-login.php:56
398
+ msgid " can not be used for New Login Path."
399
+ msgstr ""
400
+
401
+ #: admin/siteguard-menu-rename-login.php:104
402
+ msgid "New Login Path"
403
+ msgstr ""
404
+
405
+ #: admin/siteguard-menu-rename-login.php:109
406
+ msgid "An alphanumeric character, a hyphen, and an underbar can be used."
407
+ msgstr ""
408
+
409
+ #: admin/siteguard-menu-rename-login.php:117
410
+ msgid ""
411
+ "It is the function to decrease the vulnerability against an illegal login "
412
+ "attempt attack such as a brute force attack or a password list attack. The "
413
+ "login page name (wp-login.php) is changed. The initial value is “login_&lt;5 "
414
+ "random digits&gt;” but it can be changed to a favorite name."
415
+ msgstr ""
416
+
417
+ #: admin/siteguard-menu-same-error.php:63
418
+ msgid ""
419
+ "It is the function to decrease the vulnerability against the attack to "
420
+ "examine if a user name exists. All error messages about the login should be "
421
+ "equalized. The single error message is displayed even if anyone of a "
422
+ "username, password, or CAPTCHA is wrong."
423
+ msgstr ""
424
+
425
+ #: admin/siteguard-menu-waf-tuning-support.php:74
426
+ msgid "New rule created"
427
+ msgstr ""
428
+
429
+ #: admin/siteguard-menu-waf-tuning-support.php:98
430
+ msgid "Rule updated"
431
+ msgstr ""
432
+
433
+ #: admin/siteguard-menu-waf-tuning-support.php:117
434
+ msgid "Rule deleted"
435
+ msgstr ""
436
+
437
+ #: admin/siteguard-menu-waf-tuning-support.php:134
438
+ msgid ""
439
+ "To use the WAF exclude rule, WAF ( SiteGuard Lite ) should be installed on "
440
+ "Apache."
441
+ msgstr ""
442
+
443
+ #: admin/siteguard-menu-waf-tuning-support.php:152
444
+ msgid "Rules applied"
445
+ msgstr ""
446
+
447
+ #: admin/siteguard-menu-waf-tuning-support.php:155
448
+ msgid "Rules unapplied"
449
+ msgstr ""
450
+
451
+ #: admin/siteguard-menu-waf-tuning-support.php:189
452
+ msgid "Add New"
453
+ msgstr ""
454
+
455
+ #: admin/siteguard-menu-waf-tuning-support.php:207
456
+ msgid ""
457
+ "To use the WAF Tuning Support, WAF ( SiteGuard Lite ) should be installed on "
458
+ "Apache."
459
+ msgstr ""
460
+
461
+ #: admin/siteguard-menu-waf-tuning-support.php:216
462
+ msgid ""
463
+ "It is the function to create the rule to avoid the false detection in "
464
+ "WordPress (including 403 error occurrence with normal access,) if WAF "
465
+ "( SiteGuard Lite ) by JP-Secure is installed on a Web server. WAF prevents "
466
+ "the attack from the outside against the Web server, but for some WordPress "
467
+ "or plugin functions, WAF may detect the attack which is actually not attack "
468
+ "and block the function.\n"
469
+ "By creating the WAF exclude rule, the WAF protection function can be "
470
+ "activated while the false detection for the specified function is prevented."
471
+ msgstr ""
472
+
473
+ #: admin/siteguard-menu-waf-tuning-support.php:223
474
+ msgid "Apply rules"
475
+ msgstr ""
476
+
477
+ #: admin/siteguard-menu-waf-tuning-support.php:231
478
+ msgid "WAF Exclude Rule Add"
479
+ msgstr ""
480
+
481
+ #: admin/siteguard-menu-waf-tuning-support.php:233
482
+ msgid "WAF Exclude Rule Edit"
483
+ msgstr ""
484
+
485
+ #: admin/siteguard-menu-waf-tuning-support.php:239
486
+ #: admin/siteguard-menu-waf-tuning-support.php:284
487
+ #: admin/siteguard-waf-exclude-rule-table.php:59
488
+ msgid "Signature"
489
+ msgstr ""
490
+
491
+ #: admin/siteguard-menu-waf-tuning-support.php:242
492
+ msgid ""
493
+ "The detected signature name or signature ID is specified. To specify more "
494
+ "than one, separate them with new line."
495
+ msgstr ""
496
+
497
+ #: admin/siteguard-menu-waf-tuning-support.php:246
498
+ msgid "Filename (optional)"
499
+ msgstr ""
500
+
501
+ #: admin/siteguard-menu-waf-tuning-support.php:249
502
+ msgid ""
503
+ "The target file name is specified. URL ( the part before ? ) can also be "
504
+ "pasted."
505
+ msgstr ""
506
+
507
+ #: admin/siteguard-menu-waf-tuning-support.php:253
508
+ msgid "Comment (optional)"
509
+ msgstr ""
510
+
511
+ #: admin/siteguard-menu-waf-tuning-support.php:265
512
+ msgid "Save"
513
+ msgstr ""
514
+
515
+ #: admin/siteguard-menu-waf-tuning-support.php:275
516
+ msgid "WAF Exclude Rule Delete"
517
+ msgstr ""
518
+
519
+ #: admin/siteguard-menu-waf-tuning-support.php:279
520
+ msgid "You have specified this rule for deletion:"
521
+ msgid_plural "You have specified these rules for deletion:"
522
+ msgstr[0] ""
523
+ msgstr[1] ""
524
+
525
+ #: admin/siteguard-menu-waf-tuning-support.php:284
526
+ #: admin/siteguard-waf-exclude-rule-table.php:60
527
+ msgid "Filename"
528
+ msgstr ""
529
+
530
+ #: admin/siteguard-menu-waf-tuning-support.php:284
531
+ #: admin/siteguard-waf-exclude-rule-table.php:61
532
+ msgid "Comment"
533
+ msgstr ""
534
+
535
+ #: admin/siteguard-menu-waf-tuning-support.php:290
536
+ msgid "Confirm Deletion"
537
+ msgstr ""
538
+
539
+ #: admin/siteguard-menu-waf-tuning-support.php:292
540
+ msgid "There are no rules selected for deletion."
541
+ msgstr ""
542
+
543
+ #: admin/siteguard-waf-exclude-rule-table.php:35
544
+ msgid "Edit"
545
+ msgstr ""
546
+
547
+ #: admin/siteguard-waf-exclude-rule-table.php:36
548
+ #: admin/siteguard-waf-exclude-rule-table.php:77
549
+ msgid "Delete"
550
+ msgstr ""
551
+
552
+ #: classes/siteguard-captcha.php:60
553
+ msgid ""
554
+ "In order to enable this function, it is necessary to install expanded modules"
555
+ msgstr ""
556
+
557
+ #: classes/siteguard-captcha.php:71
558
+ msgid "in the server."
559
+ msgstr ""
560
+
561
+ #: classes/siteguard-captcha.php:77 classes/siteguard-login-lock.php:93
562
+ msgid "ERROR: LOGIN LOCKED"
563
+ msgstr ""
564
+
565
+ #: classes/siteguard-captcha.php:77 classes/siteguard-login-lock.php:121
566
+ msgid "ERROR: Please login entry again"
567
+ msgstr ""
568
+
569
+ #: classes/siteguard-captcha.php:78
570
+ msgid "ERROR: Please check the input and resend."
571
+ msgstr ""
572
+
573
+ #: classes/siteguard-captcha.php:113
574
+ msgid "Please input characters displayed above."
575
+ msgstr ""
576
+
577
+ #: classes/siteguard-captcha.php:159 classes/siteguard-captcha.php:165
578
+ #: classes/siteguard-captcha.php:188 classes/siteguard-captcha.php:203
579
+ msgid "ERROR: Invalid CAPTCHA."
580
+ msgstr ""
581
+
582
+ #: classes/siteguard-login-alert.php:14
583
+ msgid "New login at %SITENAME%"
584
+ msgstr ""
585
+
586
+ #: classes/siteguard-login-alert.php:15
587
+ msgid ""
588
+ "%USERNAME% logged in at %DATE% %TIME%\n"
589
+ "\n"
590
+ "--\n"
591
+ "SiteGuard WP Plugin"
592
+ msgstr ""
593
+
594
+ #: classes/siteguard-login-history.php:89
595
+ msgid "Failed"
596
+ msgstr ""
597
+
598
+ #: classes/siteguard-login-history.php:92
599
+ msgid "Success"
600
+ msgstr ""
601
+
602
+ #: classes/siteguard-login-history.php:98
603
+ msgid "Locked"
604
+ msgstr ""
605
+
606
+ #: classes/siteguard-login-history.php:101
607
+ msgid "Unknown"
608
+ msgstr ""
609
+
610
+ #: classes/siteguard-rename-login.php:143
611
+ msgid "WordPress: Login page URL was changed"
612
+ msgstr ""
613
+
614
+ #: classes/siteguard-rename-login.php:144
615
+ msgid ""
616
+ "Please bookmark following of the new login URL.\n"
617
+ "\n"
618
+ "%s\n"
619
+ "\n"
620
+ "--\n"
621
+ "SiteGuard WP Plugin"
622
+ msgstr ""
623
+
624
+ #: classes/siteguard-waf-exclude-rule.php:51
625
+ msgid "ERROR: Signature is required"
626
+ msgstr ""
627
+
628
+ #: classes/siteguard-waf-exclude-rule.php:60
629
+ msgid "ERROR: Syntax Error in Signature"
630
+ msgstr ""
631
+
632
+ #: siteguard.php:132
633
+ msgid "Login page URL was changed."
634
+ msgstr ""
635
+
636
+ #: siteguard.php:134
637
+ msgid " Please bookmark "
638
+ msgstr ""
639
+
640
+ #: siteguard.php:135
641
+ msgid "new login URL"
642
+ msgstr ""
643
+
644
+ #: siteguard.php:136
645
+ msgid ". Setting change is "
646
+ msgstr ""
647
+
648
+ #: siteguard.php:137
649
+ msgid "here"
650
+ msgstr ""
651
+
652
+ #. Plugin Name of the plugin/theme
653
+ msgid "SiteGuard WP Plugin"
654
+ msgstr ""
655
+
656
+ #. Description of the plugin/theme
657
+ msgid ""
658
+ "Only installing SiteGuard WP Plugin on WordPress, its security can be "
659
+ "improved. SiteGurad WP Plugin is the plugin specialized for the protection "
660
+ "against the attack to the management page and login. It also have the "
661
+ "function to create the exclude rule for WAF (SiteGuard Lite, to use it, WAF "
662
+ "should be installed on the Web server.)"
663
+ msgstr ""
664
+
665
+ #. Author of the plugin/theme
666
+ msgid "JP-Secure"
667
+ msgstr ""
668
+
669
+ #. Author URI of the plugin/theme
670
+ msgid "http://www.jp-secure.com/eng/"
671
+ msgstr ""
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === SiteGuard WP Plugin ===
2
  Contributors: jp-secure
3
  Donate link: -
4
- Tags: security, waf
5
  Requires at least: 3.9
6
  Tested up to: 4.0
7
- Stable tag: 1.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -50,6 +50,16 @@ Especially, it is the function to prevent an automated attack. The connection so
50
  the specified number within the specified period is blocked for the specified time.
51
  Each user account is not locked.
52
 
 
 
 
 
 
 
 
 
 
 
53
  * Disable Pingback
54
 
55
  The pingback function is disabled and its abuse is prevented.
@@ -61,6 +71,10 @@ if WAF ( SiteGuard Lite ) by JP-Secure is installed on a Web server. WAF prevent
61
  but for some WordPress or plugin functions, WAF may detect the attack which is actually not attack and block the function.
62
  By creating the WAF exclude rule, the WAF protection function can be activated while the false detection for the specified function is prevented.
63
 
 
 
 
 
64
  == Installation ==
65
 
66
  * WordPress dashboard
@@ -81,6 +95,11 @@ By creating the WAF exclude rule, the WAF protection function can be activated w
81
  http://www.jp-secure.com/cont/products/siteguard_wp_plugin/faq_en.html
82
 
83
  == Changelog ==
 
 
 
 
 
84
  = 1.0.6 =
85
  * Supported with Apache 1.3
86
  * Fix garbling of CAPTCHA by environment
1
  === SiteGuard WP Plugin ===
2
  Contributors: jp-secure
3
  Donate link: -
4
+ Tags: security, waf, brute force, password list, login lock, login alert, captcha, pingback, fail once
5
  Requires at least: 3.9
6
  Tested up to: 4.0
7
+ Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
50
  the specified number within the specified period is blocked for the specified time.
51
  Each user account is not locked.
52
 
53
+ * Login Alert
54
+
55
+ It is the function to make it easier to notice unauthorized login. E-mail will be sent to a login user when logged in.
56
+ If you receive an e-mail to there is no logged-in idea, please suspect unauthorized login.
57
+
58
+ * Fail Once
59
+
60
+ It is the function to decrease the vulnerability against a password list attack. Even is the login input is correct, the first login must fail.
61
+ After 5 seconds and later within 60 seconds, another correct login input make login succeed. At the first login failure, the following error message is displayed.
62
+
63
  * Disable Pingback
64
 
65
  The pingback function is disabled and its abuse is prevented.
71
  but for some WordPress or plugin functions, WAF may detect the attack which is actually not attack and block the function.
72
  By creating the WAF exclude rule, the WAF protection function can be activated while the false detection for the specified function is prevented.
73
 
74
+ = Translate =
75
+
76
+ If you have created your own language pack, or have an update of an existing one, you can send [gettext PO and MO files](http://codex.wordpress.org/Translating_WordPress) to [us]( sgdev@jp-secure.com ) so that We can bundle it into SiteGuard WP Plugin. You can download the latest [POT file](http://plugins.svn.wordpress.org/siteguard/trunk/languages/siteguard.pot), and [PO files in each language](http://plugins.svn.wordpress.org/siteguard/branches/languages/).
77
+
78
  == Installation ==
79
 
80
  * WordPress dashboard
95
  http://www.jp-secure.com/cont/products/siteguard_wp_plugin/faq_en.html
96
 
97
  == Changelog ==
98
+ = 1.1.0 =
99
+ * Add the "Login Alert" feature
100
+ * Add the function of inform the new Login page URL by e-mail
101
+ * Fix bug that work "Fail Once" even when the password is a mistake
102
+ * Fix bug that even if the "Rename Login" has been enabled, and have specified a permanent link to the non-standard, jump to the new login page in /login
103
  = 1.0.6 =
104
  * Supported with Apache 1.3
105
  * Fix garbling of CAPTCHA by environment
siteguard.php CHANGED
@@ -7,7 +7,7 @@ Author: JP-Secure
7
  Author URI: http://www.jp-secure.com/eng/
8
  Text Domain: siteguard
9
  Domain Path: /languages/
10
- Version: 1.0.6
11
  */
12
 
13
  /* Copyright 2014 JP-Secure Inc
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
30
  exit;
31
  }
32
 
33
- define( 'SITEGUARD_VERSION', '1.0.6' );
34
 
35
  define( 'SITEGUARD_PATH', plugin_dir_path( __FILE__ ) );
36
  define( 'SITEGUARD_URL_PATH', plugin_dir_url( __FILE__ ) );
@@ -47,6 +47,7 @@ require_once( 'classes/siteguard-admin-filter.php' );
47
  require_once( 'classes/siteguard-rename-login.php' );
48
  require_once( 'classes/siteguard-login-history.php' );
49
  require_once( 'classes/siteguard-login-lock.php' );
 
50
  require_once( 'classes/siteguard-captcha.php' );
51
  require_once( 'classes/siteguard-disable-pingback.php' );
52
  require_once( 'classes/siteguard-waf-exclude-rule.php' );
@@ -57,6 +58,7 @@ global $config;
57
  global $admin_filter;
58
  global $rename_login;
59
  global $loginlock;
 
60
  global $captcha;
61
  global $login_history;
62
  global $pingback;
@@ -67,6 +69,7 @@ $config = new SiteGuard_Config( );
67
  $admin_filter = new SiteGuard_AdminFilter( );
68
  $rename_login = new SiteGuard_RenameLogin( );
69
  $loginlock = new SiteGuard_LoginLock( );
 
70
  $login_history = new SiteGuard_LoginHistory( );
71
  $captcha = new SiteGuard_CAPTCHA( );
72
  $pingback = new SiteGuard_Disable_Pingback( );
@@ -74,13 +77,20 @@ $waf_exclude_rule = new SiteGuard_WAF_Exclude_Rule( );
74
 
75
 
76
  function siteguard_activate( ) {
77
- global $admin_filter, $rename_login, $login_history, $captcha, $loginlock, $pingback, $waf_exclude_rule;
 
 
 
 
 
 
78
 
79
  $admin_filter->init();
80
  $rename_login->init();
81
  $login_history->init();
82
  $captcha->init();
83
  $loginlock->init();
 
84
  $pingback->init();
85
  $waf_exclude_rule->init();
86
  }
@@ -116,7 +126,7 @@ class SiteGuard extends SiteGuard_Base {
116
  );
117
  }
118
  function admin_notices( ) {
119
- global $config;
120
  if ( '1' != $config->get( 'show_admin_notices' ) && '1' == $config->get( 'renamelogin_enable' ) ) {
121
  echo '<div class="updated" style="background-color:#719f1d;"><p><span style="border: 4px solid #def1b8;padding: 4px 4px;color:#fff;font-weight:bold;background-color:#038bc3;">';
122
  echo esc_html__( 'Login page URL was changed.', 'siteguard' ) . '</span>';
@@ -128,10 +138,11 @@ class SiteGuard extends SiteGuard_Base {
128
  echo '.</span></p></div>';
129
  $config->set( 'show_admin_notices', '1' );
130
  $config->update( );
 
131
  }
132
  }
133
  function upgrade( ) {
134
- global $config, $rename_login, $admin_filter;
135
  $upgrade_ok = true;
136
  $old_version = $config->get( 'version' );
137
  if ( '' == $old_version ) {
@@ -151,6 +162,9 @@ class SiteGuard extends SiteGuard_Base {
151
  }
152
  }
153
  }
 
 
 
154
  if ( $upgrade_ok && $old_version != SITEGUARD_VERSION ) {
155
  $config->set( 'version', SITEGUARD_VERSION );
156
  }
7
  Author URI: http://www.jp-secure.com/eng/
8
  Text Domain: siteguard
9
  Domain Path: /languages/
10
+ Version: 1.1.0
11
  */
12
 
13
  /* Copyright 2014 JP-Secure Inc
30
  exit;
31
  }
32
 
33
+ define( 'SITEGUARD_VERSION', '1.1.0' );
34
 
35
  define( 'SITEGUARD_PATH', plugin_dir_path( __FILE__ ) );
36
  define( 'SITEGUARD_URL_PATH', plugin_dir_url( __FILE__ ) );
47
  require_once( 'classes/siteguard-rename-login.php' );
48
  require_once( 'classes/siteguard-login-history.php' );
49
  require_once( 'classes/siteguard-login-lock.php' );
50
+ require_once( 'classes/siteguard-login-alert.php' );
51
  require_once( 'classes/siteguard-captcha.php' );
52
  require_once( 'classes/siteguard-disable-pingback.php' );
53
  require_once( 'classes/siteguard-waf-exclude-rule.php' );
58
  global $admin_filter;
59
  global $rename_login;
60
  global $loginlock;
61
+ global $loginalert;
62
  global $captcha;
63
  global $login_history;
64
  global $pingback;
69
  $admin_filter = new SiteGuard_AdminFilter( );
70
  $rename_login = new SiteGuard_RenameLogin( );
71
  $loginlock = new SiteGuard_LoginLock( );
72
+ $loginalert = new SiteGuard_LoginAlert( );
73
  $login_history = new SiteGuard_LoginHistory( );
74
  $captcha = new SiteGuard_CAPTCHA( );
75
  $pingback = new SiteGuard_Disable_Pingback( );
77
 
78
 
79
  function siteguard_activate( ) {
80
+ global $admin_filter, $rename_login, $login_history, $captcha, $loginlock, $loginalert, $pingback, $waf_exclude_rule;
81
+
82
+ load_plugin_textdomain(
83
+ 'siteguard',
84
+ false,
85
+ dirname( plugin_basename( __FILE__ ) ) . '/languages'
86
+ );
87
 
88
  $admin_filter->init();
89
  $rename_login->init();
90
  $login_history->init();
91
  $captcha->init();
92
  $loginlock->init();
93
+ $loginalert->init();
94
  $pingback->init();
95
  $waf_exclude_rule->init();
96
  }
126
  );
127
  }
128
  function admin_notices( ) {
129
+ global $config, $rename_login;
130
  if ( '1' != $config->get( 'show_admin_notices' ) && '1' == $config->get( 'renamelogin_enable' ) ) {
131
  echo '<div class="updated" style="background-color:#719f1d;"><p><span style="border: 4px solid #def1b8;padding: 4px 4px;color:#fff;font-weight:bold;background-color:#038bc3;">';
132
  echo esc_html__( 'Login page URL was changed.', 'siteguard' ) . '</span>';
138
  echo '.</span></p></div>';
139
  $config->set( 'show_admin_notices', '1' );
140
  $config->update( );
141
+ $rename_login->send_notify( );
142
  }
143
  }
144
  function upgrade( ) {
145
+ global $config, $rename_login, $admin_filter, $loginalert;
146
  $upgrade_ok = true;
147
  $old_version = $config->get( 'version' );
148
  if ( '' == $old_version ) {
162
  }
163
  }
164
  }
165
+ if ( version_compare( $old_version, '1.1.0' ) < 0 ) {
166
+ $loginalert->init();
167
+ }
168
  if ( $upgrade_ok && $old_version != SITEGUARD_VERSION ) {
169
  $config->set( 'version', SITEGUARD_VERSION );
170
  }