I don't think it's illegal in any jurisdiction that I'm aware of, but it may also not be successful.
Are you looking to get employment or sell something to them, or something else?
The best way to approach them depends probably depends on what you're looking to accomplish.