This was covered in a Science Fiction novel I read a while ago but can’t recall the title. Essentially a planet knows there are bad aliens out there so they shield all outward emissions. The next thing they do is set up a “tar baby” in another system. That planet spews EM on all frequencies at massive levels. It’s like a roach motel...aliens arrive and find...they can’t leave.
It was a neat novel, wish I could remember the name or author.
I think Niven wrote a similar novel. Can’t remember the title. In it, he put down three rules concerning alien civilizations, but I can only remember two right now. Paraphrasing...
1. Nice guys do not make it to top dog. Any species that has managed to fight it’s way to the top of a planetary food chain and develop technology is going to be tough, smart and aggressive.
2. Their survival will always be more important than our survival — to them. And they are probably going to err on the side of caution when it comes to eliminating potential threats.
There was another thread just recently on the Fermi paradox (where the heck IS everyone?) where the advisability of advertising our home address was discussed. I am one of the people in favor of keeping a low profile, myself.