I configured a hidden service and it works. But when i type the IP into a regular browser, the same web page is hosted from the apache server.

How do i prevent it from serving the http content and only serve the onion content.


1 Answer 1


To prevent the server from being accessible from the network, you need to bind your webserver to localhost rather than to all interfaces. So for example in your apache config, instead of:

Listen 80

You need:

  • Brilliant that sorted it! Thank you
    – Kyle
    Commented Jan 11, 2021 at 15:28

You must log in to answer this question.

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