Here is a master htaccess template file which can secure website and prevent it from attacks . Please make sure you read line by line carefully to comment or uncomment the lines which may affect your website .
All instances of example.com and example\.com should be replaced with your...