LiteSpeed context rule is faster than rewrite rule.
Context rule to disable all access to .files.
Static
exp:^\/\.
Location: /an_emptry_folder/
Accessible: No
With 3.0 Release, all dot prefixed files .svn, etc, will not be accessible. Most likely it will be an option checkbox in "Server -> Security".