htaccess

From IndieWeb

.htaccess is the file used for configuring particular sites on apache (as opposed to httpd.conf which is global).

How to

How to block POST

If you need to block all POST requests, e.g. due to an underlying language handling vulnerability (e.g. PHP2Shell), you can add the following lines to your .htaccess:

RewriteEngine on
RewriteCond %{REQUEST_METHOD} POST
RewriteRule .* - [F,L]

See Also