I have been reading various posts and articles on this site wherein different Bandhas are prescribed to be performed alongwith other (mostly a series of them) yogasanas. I wonder, how can certain bandhas be prescribed in general ? e.g. is it wise to prescribe Moolabandha to a person suffering piles ?

It should be mendatory to include suitable precautions to be followed in very article.