Then you are 50% there.
In order to never have Google index something you do not want you will canonical links pointing to the URLs generated from these menu items.
Canonical links have the same 'weight' as 301 redirects.
Furthermore, normally mydomain.com/123 would not appear, are you using K2's advanced SEF?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)