How to Block WordPress from subdomain?

Just use a RedirectMatch 404 in your WordPress .htaccess:

RedirectMatch 404 ^/(sub-folder-1|sub-folder-2)(/.+)?$