Avoiding frontal hugs is one of the ways a man can pursue modesty and sexual purity. I love to show physical affection, so I often side-hug women I care about and know—if I have a close, appropriate brother-sister relationship. But I avoid full-frontal hugs.
The words a man uses are extremely important. For example, he should never call any woman "hot" except his own wife, and to her privately. By keeping his eyes under control, a man not only keeps himself from lust, but also doesn't give a glance to a woman that could tempt her to inappropriately seek his attention more.
Of course, a man should avoid sexually provocative clothing, though prevailing fashions make this much easier for men than women, because fashions expose and exploit the female body more than the male body.