There are two rules to live by when placing hidden blocks:
- Do not place the hidden block where hitting it will knock the player into a hole.
- Do not place a block where hitting it will likely knock the player into an enemy.
The first rule is fairly ironclad. The second has a little bit of leeway, so long as the block is at a reasonable height. You can see these rules in play in the hidden block placement in Super Mario Bros.