Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thadoggfather

macrumors P6
Original poster
Oct 1, 2007
16,109
17,030
curious!

Not a fan of ads.

Also, any one else find it cheesy the new version magically re-enables pop ups and I had to switch it off again?
 

sean5900

Suspended
May 29, 2012
14
0
AdBlock is working just fine for me on Safari 8. If you did a upgrade I noticed it disabled all my extensions the first time I launched Safari, but it brought up a dialogue box and told me. If you did do a upgrade check your extensions under preferences and make sure its turned on.
 

Intell

macrumors P6
Jan 24, 2010
18,955
509
Inside
Can you elaborate?

adblocker noob on previous Mavs version of Safari.

Run dnsmasq on the machine to act as a DNS cache server. Build a custom DNS route list for sites whose ads you want to block. Have the IP address resolve as 127.0.0.1. Have pixelserv serve a single 1x1 transparent GIF that responds to every request with that pixel on port 80. The whole setup is faster than an ad block extension, better than a host file block, and gives your internet a slight boost in speed.
 

thadoggfather

macrumors P6
Original poster
Oct 1, 2007
16,109
17,030
AdBlock is working just fine for me on Safari 8. If you did a upgrade I noticed it disabled all my extensions the first time I launched Safari, but it brought up a dialogue box and told me. If you did do a upgrade check your extensions under preferences and make sure its turned on.

Thanks! Works beautifully again!
 

asvob

macrumors newbie
Jun 9, 2014
11
0
Run dnsmasq on the machine to act as a DNS cache server. Build a custom DNS route list for sites whose ads you want to block. Have the IP address resolve as 127.0.0.1. Have pixelserv serve a single 1x1 transparent GIF that responds to every request with that pixel on port 80. The whole setup is faster than an ad block extension, better than a host file block, and gives your internet a slight boost in speed.

This is a really good way to get rid of ads, and it isn't too hard to deploy. AdBlock extensions will also increase your browser's RAM consumption, not only overhead from the extra javascript and layout data, but each iframe can take over 4MB extra overhead, due to how the adblock extension works (injects a large stylesheet into each frame that has filters for every advertisement it knows of).

As a test, load a page with a lot of frames such as this Vim Color test page: http://vimcolorschemetest.googlecode.com/svn/html/index-c.html and try it with and without adblock, then compare the memory consumption.

For most, this is rarely a problem :)
 

Intell

macrumors P6
Jan 24, 2010
18,955
509
Inside
This is a really good way to get rid of ads, and it isn't too hard to deploy. AdBlock extensions will also increase your browser's RAM consumption, not only overhead from the extra javascript and layout data, but each iframe can take over 4MB extra overhead, due to how the adblock extension works (injects a large stylesheet into each frame that has filters for every advertisement it knows of).

As a test, load a page with a lot of frames such as this Vim Color test page: http://vimcolorschemetest.googlecode.com/svn/html/index-c.html and try it with and without adblock, then compare the memory consumption.

For most, this is rarely a problem :)

I can't take credit for it, it was brought to my attention by a coworker. As an extra bonus, you can have dnsmasq be a DNS caching server for your entire local network. This solution also works very well on mobile devices such as iOS and Android. I have it running on my iPhone and have it setup to cache and redirect the cellular DNS traffic. Works extremely well on networks with a high ping time.
 

kemo

macrumors 6502a
Oct 29, 2008
821
201
Run dnsmasq on the machine to act as a DNS cache server. Build a custom DNS route list for sites whose ads you want to block. Have the IP address resolve as 127.0.0.1. Have pixelserv serve a single 1x1 transparent GIF that responds to every request with that pixel on port 80. The whole setup is faster than an ad block extension, better than a host file block, and gives your internet a slight boost in speed.

Hey, this sounds very good. I was trying to get it running but I'm still getting issue get the pixelserv running. I have been searching for any guide but I have found nothing how to install this solution on Mac. If you can describe in a few steps what's required to get it working on Mac, it would be really helpful.

Thanks!
 

Intell

macrumors P6
Jan 24, 2010
18,955
509
Inside
MacRumors doesn't like ad block bypass howtos, so this will be brief. Pixelserve will only work if nothing else is using TCP port 80. It must run with root permissions to be able to bind to that port. It will run without a problem with the stock perl included with Mac OS X Leopard and newer. I personally have it set to run as a LaunchDaemon as root (not really good for security, but eh).
 

haravikk

macrumors 65832
May 1, 2005
1,501
21
I use GlimmerBlocker, it requires Java to run so it's maybe not quite as lean as a DNS server, but it does handle the same kind of ad-blocking rules as in-browser plugins use, but affects all browsers, (no need to install for all browsers) and you can use a single GlimmerBlocker instance on your network if you want by directing all traffic to it.

I do agree that a proper DNS cache would be faster overall; I wonder, has anyone developed one that can be configured automatically (and periodically updated) to block known advertising domains? That seems like it would be the best solution, rather than having to manually enter a domain to block every time you see an ad you don't like.
 

Intell

macrumors P6
Jan 24, 2010
18,955
509
Inside
Mine setup pulls done a weekly list, properly formats it, whitelists a few things, pushes it to a few remote systems, restarts dnsmasq, and flushes the DNS cache. There's even a manual way that works by taking input in the form of an instant message. The whole thing works very well.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.