Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Rod Begbie http://groovymother.com/

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

.htaccess rule to block access to backed-up files

If you use vi to edit files, it leaves your backup copies with tildes at the end. Adding this to your .htaccess file (or virtual host directive in your apache conf) stops people being able to access them.

(Requires mod_rewrite)

RewriteEngine on
RewriteRule  ~$   - [F]


« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS