How can I stop the app store from popping up?

When i'm on safari , of there is an add that is about an app my app store automatically opens up .
How can i stop this?
2 answers 2