while it is not illegal, you are correct, it is very very very painful. I think the link that you have referenced may be a post of mine ?
in summary :
The challenge comes down to this.
1. you enter india on a indian passport, they stamp the entry date on the indian passport.
2. when you leave...