i found out a recurring need when i develop and release websites using drupal. Basically, 99% of times, i've 2 main branches of users: admins (read: editors, ad managers, etc) and frontend users.
Furthermore, i am used to release with garland (D6) as the administration theme, while the frontend one is always a custom one.
What i found being really ugly (and my customers do as well) is that when a frontend user types the /admin path he's landing on the administration theme. First, i don't necessarily want frontend users to know which cms or framework is being used. Second, they could feel "lost" and this could result in a damage to site owners.
Drupal 6 native 'access administration pages' permission is not performing what i actually need: it prevents people from browsing the admin theme, but does not prevent them from landing there to get a peek, despite the 'Access denied' message. That, in some cases, would eventually result in some sort of a challenge ;)
What i've done: i coded a tiny module that is basically performing a drupal_goto when the needed condition is not matched, so that frontend users will never see what's "behind the curtain". I've googled this a bit, and i find strange i'm the only one complaining about this (well, that's me and all of my customers).
What i'm asking: is there any well-known way to achieve this? Answer yes, please point me the right direction. Answer no... well, i'd be glad to publish this little module and share it with the community.