Any tips on how to stop getting these?

So lately I’ve been getting these on my inner thighs. How can i stop getting them? Also how can i get rid of the blackheads? (I tried the vacuuming pore thing and it led to one of the bumps 🥲