Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I want to surprise myself with a picture of an evil looking monkey every time I access Facebook by habit or rather by addiction.

Therefore I added the following lines to /private/etc/hosts:

# Block Facebook

The actual question is: Does someone know a good way of letting it point to a local file e.g. in the OS X native „Website“-Folder. I don't want to run an apache all the time. I'd truly appreciate your help.

share|improve this question
You could upload a picture to Photobucket and have it forward to those... I think that would be a lot easier... For instance have it point to a page like this – David Sep 20 '11 at 18:27
I forgot that you can't direct it to a specific URL, only IP addresses. @akub.gieryluk's answer is the only way I know of other than having some type of web server application installed on your server... – David Sep 20 '11 at 18:38

LeechBlock is definitely the thing for you, if you're using Firefox. You can redirect any set of URLs (e.g.*) to a given URL.

Regarding hosts file, all you can is to do a redirect to a given IP (unless you use some extra application that will add more functions).

share|improve this answer
thank your very much! – wrndl Sep 20 '11 at 18:40
Feel free to mark the answer as accepted if it helped. – jakub.g Sep 21 '11 at 12:52

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.