Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

MacKeeper (and other sites) adverts pop up on some video sites which I find very irritating. Is there any way to block specific URLs in Safari?

This occurs both on Mac and iPad. Ideally, I'd like a solution I can directly apply to the iPad.

share|improve this question
up vote 3 down vote accepted

I would suggest OpenDNS. You can apply it to your entire network using their name servers and block categories or specific URL's. Although the ad might show up as a frame to a 'Website Blocked' page from OpenDNS, you'll probably find it useful (it's free).

share|improve this answer

My prefered solution is using glimmerblocker which is actually an ad blocker but can be also used to just block specific web sites/URLs.

For iDevices it's a bit more difficult (at least if not jailbroken). Glimmerblocker supports a proxy mode though which allows you to point Mobile Safari to the Mac running Glimmerblocker. Of course this requires both systems to be online.

share|improve this answer

For MacOS the quickest way is to edit hosts file:

sudo nano /etc/hosts

add the following line to the end of the file:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.