[wordpress插件] Caret Country Access Limit插入符号国家/地区访问限制

wordpress 插件 文章 2020-03-17 01:10 485 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

APNICなどの機関で公開されているIPアドレスの一覧を自動取得し、.htaccessによるアクセス制限を国単位で行います。

Automatically obtain a list of IP addresses published by institutions such as APNIC and restrict access by .htaccess on a country-by-country basis.

紹介ページ

Introduction page

http://www.ca-ret.co.jp/?p=1172

http://www.ca-ret.co.jp/?p=1172

アクセス元の国を制限することにより、総当たり攻撃などの防止策になります。

Restricting the country from which access is made can be used to prevent brute force attacks.



よろしければお試しください。

Please try if you like.

Arbitrary section

Arbitrary section

■免責事項

■ Disclaimer

本プラグインは無料でご利用いただけますが、ご自身の責任においてご利用ください。

The plug-in is free to use, but use at your own risk.



利用の結果生じた損害について、一切責任を負いません。

We are not responsible for any damages resulting from the use.

予めご了承ください。

Please note.

お問い合わせ、ご意見、ご要望、不具合等は、以下お問い合わせフォームよりご連絡ください。

For inquiries, opinions, requests, problems, etc., please contact us using the inquiry form below.



http://www.ca-ret.co.jp/contact

http://www.ca-ret.co.jp/contact

■関連事項

■ Related matters

    • ISO 3166-1 wikipedia
    • ISO 3166-1 wikipedia

    http://ja.wikipedia.org/wiki/ISO_3166-1

    http://en.wikipedia.org/wiki/ISO_3166-1

      • IPアドレスの管理について
      • About IP address management

      https://www.nic.ad.jp/ja/ip/admin.html

      https://www.nic.ad.jp/ja/ip/admin.html

      このプラグインは、国別のIPアドレスの取得の際に、インターネットレジストリを使用しています。

      This plugin uses the Internet registry to obtain country-specific IP addresses.



      This plugin uses the internet registery in order to validate IP addresses.

      This plugin uses the internet registery in order to validate IP addresses.

        • Regional Internet Registry(RIR) database
        • Regional Internet Registry (RIR) database

        ftp://ftp.arin.net/pub/stats/arin/delegated-arin-extended-latest
          

        ftp://ftp.arin.net/pub/stats/arin/delegated-arin-extended-latest
          

        ftp://ftp.ripe.net/pub/statsipencc/delegated-ripencc-extended-latest
          

        ftp://ftp.ripe.net/pub/statsipencc/delegated-ripencc-extended-latest
          

        ftp://ftp.apnic.net/pub/stats/apnic/delegated-apnic-extended-latest
          

        ftp://ftp.apnic.net/pub/stats/apnic/delegated-apnic-extended-latest
          

        ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-extended-latest
          

        ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-extended-latest
          

        ftp://ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-extended-latest

        ftp://ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-extended-latest

安装步骤

■注意事項

■ Notes

    • IPアドレス一覧の自動更新は、「wp-cron.php」を使用します。

    • Use "wp-cron.php" to automatically update the IP address list.

      「wp-cron.php」を使用しない場合は、cronに「php WordPressのroot/wp-content/plugins/CaretCountryAccessLimit/batch.php 1 > /devull 2>&1」を登録することで自動更新が

      If you do not use "wp-cron.php", register "php WordPress root / wp-content / plugins / CaretCountryAccessLimit / batch.php 1> / dev / null 2> & 1" in cron for automatic update.

      可能です。

      Is possible.

    • このプラグインは、WordPressルートディレクトリ、「wp-content」、「wp-content/plugins/CaretCountryAccessLimit」に対して書込み権限が必要となります。

    • This plugin needs write permission to the WordPress root directory, "wp-content" and "wp-content / plugins / CaretCountryAccessLimit".

    • このプラグインをFTPなどでアップロードした場合は、「wp-content/plugins/CaretCountryAccessLimit/batch.php」対して実行権限が必要となる場合があります。

    • If this plug-in is uploaded by FTP, etc., execution authority may be required for "wp-content / plugins / CaretCountryAccessLimit / batch.php".

    • 「上記の国からのアクセス時の処理」で「許可する」を選択した場合、「プライベートアドレス 」「ループバックアドレス」が自動的に追加されます。

    • If "Allow" is selected in "Processing when accessing from the above countries", "Private address" and "Loopback address" are automatically added.

    • 「アクセスを拒否(又は許可)する国の2文字の国コード」「上記の国以外でアクセスを拒否(又は許可)するIPアドレス」は、1件ごとに改行をしてください。

    • Please enter a new line for each "two-letter country code of the country where access is denied (or permitted)" and "IP address for which access is denied (or permitted) in countries other than those listed above."

    • 万が一アクセスできなくなった場合は、FTPクライアントなどでWordPressのルートディレクトリに移動し、htaccessのバックアップ「.htaccess_country_limit_org」を「.htaccess」にリネームするか「.htaccess」を削除してください。

    • If you can no longer access, please move to the root directory of WordPress with an FTP client etc. and rename the htaccess backup ".htaccess_country_limit_org" to ".htaccess" or delete ".htaccess".

    ■プラグインの有効化

    ■ Enable plugin

    管理ページ>プラグイン>CaretCountryAccessLimitを有効にしてください。

    Management page> Plugins> Enable CaretCountryAccessLimit.

    ■設定

    ■ Settings

    管理ページ>設定>CaretCountryAccessLimitの設定にて下記を設定してください。

    Set the following in the management page> settings> CaretCountryAccessLimit settings.

    1.アクセス制限機能のON/OFF

    1.ON / OFF of access restriction function

      • このプラグインによるアクセス制限を一時的に無効にしたい場合は「OFF」に設定します。

      • If you want to temporarily disable access restrictions by this plug-in, set it to "OFF".

      2.アクセス制限の対象となるメソッド

      2. Methods subject to access restrictions

        • 制限したいリクエストメソッド「POSTのみ」「GETのみ」「両方」の中から選択します。

        • Select the request method you want to restrict from "POST only", "GET only" or "Both".

        3.アクセスを拒否(又は許可)する国の2文字の国コード

        3. Two-letter country code of the country for which access is denied (or allowed)

          • 制限対象の2文字の国コード(ISO 3166-1 alpha-2)を入力します。

          • Enter the restricted two-letter country code (ISO 3166-1 alpha-2).

          • 参考URL:http://ja.wikipedia.org/wiki/ISO_3166-1
          • Reference URL: http://en.wikipedia.org/wiki/ISO_3166-1

          4.上記の国からのアクセス時の処理

          4. Processing when accessing from the above countries

            • 3で入力した国からアクセスを「拒否する」「許可する」から選択します。

            • Select from "Deny" or "Allow" access from the country entered in 3.

            • 「許可する」を選択した場合、「プライベートアドレス 」「ループバックアドレス」が自動的に追加されます。

            • If you select "Allow", "Private address" and "Loopback address" will be added automatically.

            5.上記の国以外でアクセスを拒否(又は許可)するIPアドレス

            5.IP address for which access is denied (or permitted) outside of the above countries

              • 3以外で別途制限したいIPアドレスを入力します。

              • Enter the IP address you want to restrict separately except for 3.

              • 例)127.0.0.1、127.0.0.1/32など
              • Example) 127.0.0.1, 127.0.0.1/32, etc.

              6.IPアドレス一覧の更新間隔

              6. IP address list update interval

                • IPアドレス一覧を自動更新する間隔を「3日」「7日」「14日」「30日」から選択します。

                • Select the interval for automatically updating the IP address list from "3 days", "7 days", "14 days", and "30 days".

下载地址
https://downloads.wordpress.org/plugin/caret-country-access-limit.1.0.2.zip
-EOF-

AI助手支持GPT4.0