Code Monkey home page Code Monkey logo

tor-hidden-service-on-heroku's Introduction

Tor Hidden Service On Heroku

image image

FOSSA Status Version Licence issues stars

Ouick Deploy to heroku

  • 1 . To host your website in dark web with one click and run server on heroku.

  • 2 . Click below Deploy to Heroku Button.

    Deploy

    Note : Deploy with heroku Deploy button will host a demo webpage, you can not use your html file.To host your own webpage goto Manually Deploy to Heroku Session

  • 3 . You will be navigated to Heroku Dashboard. Enter app name in App name field and click Deploy app button.

  • 4 . Now your app is accessible over Tor.

    Note :- Since,heroku has an ephemerals file system that is destroyed every time when your app restart's.so your application will generate a new .onion link everytime when your app restarts.To use your custom permanent onion link go down to Manually Deploy to Heroku.

  • 5 . To know you .onion address click here

Manually Deploy to Heroku

Prerequisites

image image image

  • 1 . tor - v3
  • 2 . php
  • 3 . git
  • 4 . Heroku CLI

Install Heroku

image

heroku --version
  • 3 . Connect the Heroku CLI to your account by writing the following command in your terminal and follow the instructions on the command line.
heroku login

Quick Start

  • 1 . Create a new project, for example in my case Project and go to that directory.

  • 2 . Clone this repository with below command

git clone https://github.com/sumithemmadi/tor-hidden-service-on-heroku
cd tor-hidden-service-on-heroku
  • 3 . Create a heroku application
heroku apps:create App-Name
  • heroku apps:create App-Name this command creates the application as well as a git remote, that you can use to push your code to Heroku.

    Note: replace App-Name with any other name.

 $ heroku apps:create tor-hidden-service-on-heroku
 Creating ⬢ tor-hidden-service-on-heroku... done
 https://tor-hidden-service-on-heroku.herokuapp.com/ | https://git.heroku.com/tor-hidden-service-on-heroku.git
  • 4 . Now add two buildpacks heroku/php and heroku-community/apt to you application.

    • heroku/php
heroku buildpacks:set heroku/php
    • heroku-community/apt
heroku buildpacks:add --index 1 heroku-community/apt
  • Sometimes adding 2nd buildpack will remove 1st one ,try adding two buildpacks again and again one by one untill you see two buildpacks added as shown in below picture.

image

  • 6 . Copy your website file's to the folder public_html
    eg :- index.html,index.php [default=index.html]

  • 7 . Copy the following files to temp/var/lib/tor/hidden_service dir

    • hostname
    • hs_ed25519_public_key
    • hs_ed25519_secret_key

    If you don't know where these files stored refer to https://2019.www.torproject.org/docs/tor-onion-service

  • 8 . Or go down to testing session to generate tor onion addresses.

  • 9 . Deploy your changes to heroku

git add .
git commit -am "Updated"
git push heroku

Testing

  • 1 . Clone this repository with below command
git clone https://github.com/sumithemmadi/tor-hidden-service-on-heroku
cd tor-hidden-service-on-heroku
  • 2 . Run below command
~$ ./run
  • 3 . Now open http://localhost:4000/ in any browser.
  • 4 . Now your app is accessible over Tor.
  • 5 . Check your app is accessible over tor or not by running below command in new terminal.
curl -v --socks5-hostname localhost:9050 [YOU ONION ADDRESS]

To know your .onion address on heroku

  • Run below command to know your onion address.
heroku run cat temp/var/lib/tor/hidden_service/hostname

Image

Get onion link on heroku app

  • If you still can't find your .onion link.
    Open your heroku app
    https://App-Name.herokuapp.com and click on show my .onion link.

    Note : Due to herokus policies, a single web dyno is sent to sleep after 30 minutes of inactivity. This means if your application has not served any requests for 30 minutes, it is forced to sleep by heroku and has to wake up prior to serve a new request, which easily can take up to 30–40 seconds. Generally free dynos will sleep (shut down) after 30 minutes of inactivity. This is actually a feature to avoid using up your free dyno hours. To prevent Heroku app from idling add New Relic add-on. It has an availability monitor feature that will ping your site twice per minute, thus preventing the dyno from idling (Or) add Uptimerobot it is free and offers 5 min interval site checking.

  • Here is my app https://tor-hidden-service-on-heroku.herokuapp.com/

tor-hidden-service-on-heroku's People

Contributors

sumithemmadi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tor-hidden-service-on-heroku's Issues

make deploy to heroku botton on github branch

hi Emmadi Sumith Kumar ,
please make deploy to heroku botton on github branch , because using web ui is so easier than using heroku cli :)
waiting for your response
finest regards

please auto install ghost cms with external PostgreSQL and Cloudinary image storage

hi Emmadi Sumith Kumar ,
at the first , thank you for make deploy to heroku button at github branch :)
please auto install ghost cms with external PostgreSQL and Cloudinary image storage as index.php file in web
PostgreSQL is free addon & not need to add credit card verify on heroku
this repo is complete productable , now need to auto install with your process :
https://github.com/SNathJr/ghost-on-heroku
waiting for your response
finest regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.