Simply learn yourself.
For Safari

How to block Safari Popup

Pop-ups are form of online advertising that appears on your browser when you visit any website. The aim of Pop-up is to increase web traffic that can be initiated by a single or double mouse click or rollover. However, there are security issues related with Pop-ups as they can infect your computer with viruses and steal your credentials. It is generally recommend to turn off popup in order to ensure safety of your iOS device. Here are some steps that help you in blocking popup in safari

Step 1:  Navigate to the home screen on your iOS device. Tap on ‘Settings’ option.  Dropdown list containing various options will appear.

Step 2: Select ‘Safari’ option from the list appearing on the left of the screen.  Under ‘General’ setting header you will find ‘Block Pop-ups’ switch button if it is on turn it off by tapping on it.

Step 3:  Now, you won’t see any Pop-up appearing on your safari browser while surfing internet on your iOS device. However, if you want to turn on the pop-ups in future you can follow the same steps.