Protecting your .htaccess file – a tutorial

For slightly more advanced users, securing your blog or web host is an important part of ensuring the security. However, people tend to quake when it comes to doing such operations, and there is a heightened sense of fear at making any changes that could end up corrupting your settings or otherwise tampering with the smooth operations of your server. And not everybody can afford to hire expensive consultants for helping in this regard. However, here is a tutorial that could help you understand more about what .htaccess does, and how do you tweak your settings (learn more). Some of the stuff you can learn in the article is:

This quick tutorial will provide you with an htaccess file that does the following:
1. Protects itself (security)
2. Turns the digital signature off (security)
3. Limits upload size (security)
4. Protects wp-config.php (security)
5. Gives access permission to all visitors with exceptions (security, usability)
6. Specifies custom error documents (usability)
7. Disables directory browsing (security)
8. Redirect old pages to new (optional)
9. Disables image hotlinking (bandwidth)
10. Enables PHP compression (bandwidth)
11. Sets the canonical or “standard” url for your site (seo, usability)

Once you get this done, you will have increased the security level of your site, as well as being able to handle visitors.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>