0

I programmed on my PC a website in php using xampp and mysql server, but how do I send these files contained in my folder, which is located at: (ex: htdocs/my finished site), to the tor network?

0

1 Answer 1

0

You should point the address:port of you webserver to Tor.

First, create a folder in which the files for the .onion domain will be put on:

sudo mkdir /var/lib/tor/<site_name>

Change the permissions:

sudo chmod 0700 /var/lib/tor/

Change the folder ownership to user running Tor (in Debian is debian-tor):

sudo chown -R debian-tor:debian-tor /var/lib/tor/

Edit your /etc/tor/torrc file and insert these lines

HiddenServiceDir /var/lib/tor/<site_name>
HiddenServicePort 80 <webserver_address>:<port>

Replace <webserver_address>: with the address:port of the webserver, for example 127.0.0.1:8080

Restart Tor:

sudo systemctl restart tor.service

And finally pick up the address of your hidden site:

sudo cat /var/lib/tor/<site_name>/hostname

(Sorry if my English is bad).

2
  • basically it is, but the PHP itself needs to be secured to prevent any data leaks!
    – Alexey Vesnin
    Commented Aug 2, 2022 at 0:48
  • Yep. There is a lot of tutorials about this just searching in Google.. Commented Aug 3, 2022 at 0:00

You must log in to answer this question.

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