Answer the question
In order to leave comments, you need to log in
Difference and exceptions of using 444 response?
Good day. I am currently setting up a VPS for a Wordpress site. I don't have much experience, I'm learning.
I paid attention to examples of configs, in the same config answers 403, 404 and 444 are used. Judging from the documentation, you can safely and even need to use 444 if you want to reduce the load. I suspect those configs were written by copy-paste.
For example, when protecting directories and WP files
location ~* /wp-content/.*.php$ { return 444; }
location ~* /(?:uploads|files)/.*.php$ { return 444; }
location ~* /themes/.*.php$ { return 444; }
location ~* /wp-content/.*.php$ { return 444; }
location ~* /(?:uploads|files)/.*.php$ { return 444; }
location ~* /themes/.*.php$ { return 444; }
Answer the question
In order to leave comments, you need to log in
Code 444 is non-standard. This is a feature of nginx .
When nginx sees a 444, it doesn't waste resources sending headers, it just silently closes the connection (sends an RTS packet).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question