{"id":21675889,"url":"https://github.com/sumithemmadi/ruby-hidden-service","last_synced_at":"2025-03-20T09:22:46.382Z","repository":{"id":45009411,"uuid":"398474316","full_name":"sumithemmadi/Ruby-Hidden-Service","owner":"sumithemmadi","description":"Host a website in dark web with heroku","archived":false,"fork":false,"pushed_at":"2021-11-25T08:46:55.000Z","size":264,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-25T10:11:16.732Z","etag":null,"topics":["heroku","host-a-website-in-dark-web","tor","tor-hidden-service-on-heroku","tor-on-heroku","tor-onion","tor-onion-network"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sumithemmadi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"sumithemmadi","issuehunt":"sumithemmadi","otechie":null,"custom":null}},"created_at":"2021-08-21T05:26:47.000Z","updated_at":"2023-09-08T18:25:38.000Z","dependencies_parsed_at":"2022-09-22T16:00:41.772Z","dependency_job_id":null,"html_url":"https://github.com/sumithemmadi/Ruby-Hidden-Service","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2FRuby-Hidden-Service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2FRuby-Hidden-Service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2FRuby-Hidden-Service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2FRuby-Hidden-Service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumithemmadi","download_url":"https://codeload.github.com/sumithemmadi/Ruby-Hidden-Service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244583368,"owners_count":20476315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["heroku","host-a-website-in-dark-web","tor","tor-hidden-service-on-heroku","tor-on-heroku","tor-onion","tor-onion-network"],"created_at":"2024-11-25T14:11:22.663Z","updated_at":"2025-03-20T09:22:46.360Z","avatar_url":"https://github.com/sumithemmadi.png","language":"HTML","readme":"## Tor-Hidden-Service\n![image](https://img.shields.io/badge/Heroku-430098?style=for-the-badge\u0026logo=heroku\u0026logoColor=white) ![image](https://img.shields.io/badge/Tor-7D4698?style=for-the-badge\u0026logo=Tor-Browser\u0026logoColor=white)\n\n[![Version](https://img.shields.io/badge/Version-1.0.3-blue)](https://github.com/sumithemmadi/Ruby-Hidden-Service)\n[![Licence](https://img.shields.io/github/license/sumithemmadi/Ruby-Hidden-Service)](https://github.com/sumithemmadi/Ruby-Hidden-Service)\n[![issues](https://img.shields.io/github/issues/sumithemmadi/Ruby-Hidden-Service)](https://github.com/sumithemmadi/Ruby-Hidden-Service)\n[![stars](https://img.shields.io/github/stars/sumithemmadi/Ruby-Hidden-Service)](https://github.com/sumithemmadi/Ruby-Hidden-Service)\n\n\n_Note: Tor is ending its support for version 2 (v2) Onion Services, and v2 onion sites have since been deprecated. Please refer to_ `tor v3` [Tor-Onion-Service-On-Heroku](https://github.com/sumithemmadi/Tor-Onion-Service-On-Heroku).\n### Prerequisites\n- 1 . `ruby`\n- 2 . `tor`  _v2_\n- 3 . `php`\n- 4 . `git`\n- 5 . `heroku CLI`\n\n\n### Install Heroku\n- 1 . Create an account on  **[https://heroku.com](https://heroku.com)**.\n- 2 . Install the Heroku CLI on your computer: \u003cbr/\u003e**[https://devcenter.heroku.com/articles/heroku-cli](https://devcenter.heroku.com/articles/heroku-cli)**. \n\u003cbr/\u003eCheck that you have the `heroku-cli` installed by checking the version number in your terminal:\n\n```bash\nheroku --version\n```\n\n- 3 . Connect the `Heroku CLI` to your account by writing the following command in your terminal and follow the instructions on the command line:\n```bash\nheroku login\n```\n\n### Quick Start\n\n- 1 . After installing `Heroku CLI` clone this reposiRubyy.\n\n- 2 . Clone the repo with below command\n```bash\ngit clone https://github.com/sumithemmadi/Ruby-Hidden-Service.git\ncd Ruby-Hidden-Service\n```\n- 3 . Create a heroku application\n\n```bash\nheroku apps:create App-Name\n```\n\n-  `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:\n \n-  _Note: replace `App-Name` with  any other name._\n```bash\n$ heroku apps:create ruby-hidden-service\nCreating ⬢ ruby-hidden-service... done\nhttps://ruby-hidden-service.herokuapp.com/ | https://git.heroku.com/ruby-hidden-service.git\n```\n- 4 . Now enter the below command\n\n```bash\nheroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi.git\n```\n- Add this buildpack to heroku.\n\n- 5 . Copy your website `index.html` file to the folder `views` as `index.erb`\u003c/br\u003e\n\n- 6 . Copy SHA from private_key which is located at `/var/lib/tor/hidden_service/`\n\n   - `hostname`\n   - `private_key`\n   If you don't know where these files stored refer to **[https://2019.www.torproject.org/docs/tor-onion-service](https://2019.www.torproject.org/docs/tor-onion-service)**\n  \n\n- 7 .  Tor hidden services require  a private_key and it's SHA to generate  .onion name. You'll need to provide this as env vars.You can also edit config vars from your app’s Settings tab in the [Heroku Dashboard](https://dashboard.heroku.com):\n  - Open your app on heroku then click settings\u003econfig vars.\n   [![image](https://raw.githubusercontent.com/sumithemmadi/Ruby-Hidden-Service/main/configvar.jpg)](https://dashboard.heroku.com)\n  - Set config vars with `HIDDEN_SERVICE_PRIVATE_KEY`: The contents of a `private_key` file.\n\n\n- 8 . Deploy your changes to heroku\n```bash\ngit add .\ngit commit -am \"Ruby hidden service\"\ngit push heroku\n```\n\n- _Now your app is accessible over Tor_\n- To know your .onion address\n- Run the below command on terminal\n```\ncat /var/lib/tor/hidden_service/hostname\n```\n### My app\n\n-  **[https://ruby-hidden-service.herokuapp.com/](https://ruby-hidden-service.herokuapp.com/)**\n    \n- Tor is ending its support for version 2 (v2) Onion Services. Please refer to `tor v3` \n- GitHub Repo for `Tor onion service v3`:[https://github.com/sumithemmadi/Tor-Onion-Service-On-Heroku](https://github.com/sumithemmadi/Tor-Onion-Service-On-Heroku).\n","funding_links":["https://liberapay.com/sumithemmadi","https://issuehunt.io/r/sumithemmadi"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumithemmadi%2Fruby-hidden-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumithemmadi%2Fruby-hidden-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumithemmadi%2Fruby-hidden-service/lists"}