I had tried this [webmasterworld.com] but the site not loaded
Holy ###. He really did it with mod_rewrite alone. I do something vaguely analogous in text files, but honestly, unless your name is jdMorgan I wouldn't advise it. What you're doing in his version is going through the alphabet, changing A to a, B to b and so on, and then looping through the whole thing again, all 26 steps of it, over and over until the whole request rinses clean. So that gives you 26-plus opportunities to go into infinite loops* if you are not very, very careful.**
When you say "the site not loaded" did you mean that the referenced page (jdm's post) didn't load, or that your page didn't load when you tried the code? Did you, in fact, go into an infinite loop?
The original code was posted just about five years ago. Has anyone ever dared use it?
* In related news, I finally worked out why I was still getting the more-than-ten-redirects error even after I'd put in exclusions for the custom 403 document at every stage. It's because some requests meet multiple barriers: if they get past the phony-referer [F], next step is a probably-phony-UA redirect to a
different custom page....
** As, for example, if, say, in your hurry to deal with the infinite-redirects problem you don't notice that you have spelled it RewriteCont. Thanks to Murphy's Law of Robotics, several search engines picked that precise moment to come knocking.