Skip to content

Commit 641b62e

Browse files
committed
commit a8f9e2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9
1 parent b0bcbf0 commit 641b62e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx.production.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ server {
4646
root /var/www/atonixdev.org/html;
4747
index index.html;
4848

49+
# Block common WordPress probe paths (bots will scan these and your SPA fallback would otherwise return 200).
50+
location ~* ^/(wp-admin|wp-login\.php|xmlrpc\.php|wordpress)(/|$) {
51+
return 404;
52+
}
53+
4954
# Handle React Router - all requests to index.html
5055
location / {
5156
try_files $uri $uri/ /index.html;

0 commit comments

Comments
 (0)