Bargaining or begging...

OK CB wat if a person muslim or non-muslim(mostly goras in this case) brings his hand forward for a handshake with u wats the best way to avoid that without being rude?
i had two incidents…my husbands relatives always do handshake n hug their female relatives.when i went to pak they tried to handshake with me.i said"i don’t like to"they got offended n said"we r like brothers"i said but still its not same n i feel uncomfortable" they don’t do it with me now but they do find me rude.i thought as a muslim they should hav some sense n my husband would hav objected to this himself
Next my sons gora teacher met us n after meeting did the customary handshake with me n my husband both.i didn’t refuse.this time he a non-muslim said "i thought muslim ladies r not allowed to shake hand with men"n i was really embarassed.