Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
IPがapacheのmod_geoip2によってブロックされると、「Forbidden/」エラーが表示されます。geo ipブロッキングは正常に機能しますが、ipがブロックされたときにカスタムエラーページまたはメッセージを表示する可能性はありますか?
私は広告maxmindsのドキュメントを調べましたが、何も言及されていません。多分誰かがアイデアを持っていますか?
次に例を示します。
GeoIPEnable On GeoIPDBFile /path/to/GeoIP.dat RewriteEngine On RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !(US|GB|CA)$ RewriteRule ^(.*)$ /error_page.html [NC,L]
上記のルールがあなたの質問に答えることを願っています