One summer in 1989, I worked as a junior drafts-person** in an engineering department.
It was a vast room full of white cishet guys, mostly.
I really, really, REALLY did not want these guys trying to "bond" with me, thinking I was a part of their pale penis decoder ring of misogyny fan club.
I did one simple thing. I didn't cuss. Ever. I also avoided responding to any off color sexual joke beyond a blinking empty look of disengaged innocence.
It worked. They stayed the hell away from me.