Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 torproject.org/docs/tor-hidden-service.html.en for Hidden Services Configuration and httpd.apache.org/docs/2.2/vhosts/examples.html for some Apache VirtualHost Examples. –  huebkov Mar 26 '13 at 9:52
add comment

1 Answer

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. 127.0.0.1).

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

Listen 127.0.0.1:80

and

<VirtualHost 127.0.0.1:80>

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

netstat -tnlp
share|improve this answer
add comment

Your Answer

 
discard

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.