Created
September 26, 2017 06:21
-
-
Save onocom/ff9789284a987181ad28877f1656fdae to your computer and use it in GitHub Desktop.
WordPress security settings .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .htaccessの上の方に追加 | |
# TOPページへのPOSTアクセスを拒否 | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} ^/$ | |
RewriteCond %{REQUEST_METHOD} ^POST | |
RewriteRule .* - [F] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wp-contents/uploads/直下に .htaccess を作成し、以下を記載 | |
# バックドア等はupload機能を用いてアップされることが多いので、一般にphpファイルが存在しないuploads配下ではphpファイルへのアクセスを拒否 | |
<Files *.php> | |
deny from all | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment