Super User is a question and answer site for computer enthusiasts and power users. 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

For most annoying ad sites I add mapping to in /etc/hosts file and I use lighttpd binded to that ip to show empty page or empty image for requests (using regexp). Are there any alternatives, as lighttpd is not easy to update using macports (I need to deactivate and reactivate it)?

share|improve this question
Sorry - voted to close prematurely. Please ignore my vote. – ChrisF Nov 21 '10 at 22:56
up vote 1 down vote accepted

The simplest alternative is not to run a web server at all. This generally makes little difference in the browser, compared to returning an empty page.

Otherwise, lightweight web servers available through MacPorts include Abyss, Cheetah, Lighttpd, LWS, Mathopd, Mongoose, Monkeyd, Pico Server, Webfs, … It's hard to give a specific recommendation since you don't explain what you don't like about Lighttpd.

share|improve this answer
Not running server will be slow as a lot of requests will be waiting to know that there is nothing at, also I use image with exclamation, so it is easy to know that there should be ad. Though, thank you for list of servers, I will try them. – tig Nov 22 '10 at 2:24
lighttpd is not easy to update using macports – Sathya Nov 22 '10 at 5:14
@tig: If you're not running a server, the negative response will be instantaneous (microscopically faster than if you are running a server, in fact). – Gilles Nov 22 '10 at 18:34
My bad, I tried to access without creating alias to lo0, so it was very long, with alias it really takes no time, but I found that System log gets Firewall entries about connection attempts to from – tig Nov 22 '10 at 19:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .