See: https://perishablepress.com/8g-firewall/ If you know what this is, you won't need to ask more 😉
If you don't know what it is.. it's a great .htaccess block that blocks out much of the rubbish. We add it to all root .htaccess files on our servers.
Nice share!
Just curious, is there a way to add this to .htaccess automatically when adding a new Wordpress website in Enhance? Or do we need to modify the .htaccess file manually?
I do something like: find /var/www/*/public_html/ -maxdepth 1 -type f -name ".htaccess" -exec sh -c "cat 8g.txt {} > $$.tmp && mv $$.tmp {}" \;
find /var/www/*/public_html/ -maxdepth 1 -type f -name ".htaccess" -exec sh -c "cat 8g.txt {} > $$.tmp && mv $$.tmp {}" \;
... adds rules to the top of .htaccess
I see. Great! Thank you for the method!