Server Fault is a question and answer site for system and network administrators. 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

I have launched a website in TOR and I can access it through the .onion address and also typing the ip of my server in my browser. I want my site was only accessible from TOR and not through clearweb, how can I achieve this?

I'm using Ubuntu 12 and Apache2

share|improve this question
Have a look at for Hidden Services Configuration and for some Apache VirtualHost Examples. – hub Mar 26 '13 at 9:52

To run a Tor hidden service using Apache which is not accessible from the public network, be sure that Apache is configured to listen only on the local interface (e.g.

Some things you may need to change in your configuration files are:




You can verify the IP addresses that Apache is bound to by running the ss command:

ss -tnlp
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.