Bitcoin Forum
August 23, 2019, 03:32:47 AM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to host a website in bitcoin transaction?  (Read 81 times)
Fellane
Copper Member
Newbie
*
Offline Offline

Activity: 16
Merit: 21


View Profile WWW
May 28, 2019, 12:56:14 PM
 #1

I was looking for a way to host a simple html page inside bitcoin transaction but found nothing.
I know, that I can insert data in bitcoin transaction using op_return. As far as I know there is a 40 or 80 bytes limit. Is there any way to host a simple html page in several bitcoin transactions?
Let's say I have 1kb html page and I need to insert it to bitcoin blockchain. So I have to use several bitcoin transactions because of limit.
But how I can view this html page if it's inside several bitcoin transactions?

What is your thoughts about it? Is it at least possible?

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1566531167
Hero Member
*
Offline Offline

Posts: 1566531167

View Profile Personal Message (Offline)

Ignore
1566531167
Reply with quote  #2

1566531167
Report to moderator
1566531167
Hero Member
*
Offline Offline

Posts: 1566531167

View Profile Personal Message (Offline)

Ignore
1566531167
Reply with quote  #2

1566531167
Report to moderator
LeGaulois
Copper Member
Legendary
*
Offline Offline

Activity: 1162
Merit: 1163

Bitcoin Ninja Unregulated Banker Unbanking Folks


View Profile
May 28, 2019, 09:06:56 PM
 #2

It's possible with Ethereum. Someone posted a 'how to' in this section long ago, I don't remember how but I tried and it worked. I'm unable to find his topic again, nor I know what query to tell you to search but I know it's possible.
It's just visible by browsers, not by bot crawlers, etc.

Coding Enthusiast
Hero Member
*****
Offline Offline

Activity: 659
Merit: 985


Novice C♯ Coder


View Profile WWW
May 29, 2019, 04:28:54 AM
 #3

There is a way to do this with bitcoin but it requires combination of two technologies: Bitcoin's scripting language (specifically OP_Return) and Torrent network. This method does not need any servers or domains. The general idea is this:
1. You build your website, it can be a simple "Hello world" page to a complex e-commerce website with user registration,...
2. Make a torrent out of it and get its 20 byte hash (this is simply the hash that you insert in utorrent to download the torrent file)
3. Create a bitcoin address that will belong to your website. Send a transaction to this address and include the hash from previous step in its output with an OP_Return.
4. Now everyone who wants to visit your website has to look at that address, they simply check its last transaction and extract its OP_Return output to get the new hash. Then they download the website using that hash via torrent network by using something like webtorrent.

Ref: https://github.com/elendirx/web2web

Projects List+Suggestion box
Donation link using BIP21
Bech32 Donation link!
BitcoinTransactionTool (0.9.2):  Ann - Source Code
Watch Only Bitcoin Wallet (supporting SegWit) (3.1.0):  Ann - Source Code
SharpPusher (broadcast transactions) (0.10.0): Ann - Source Code

Piggy
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1368



View Profile WWW
May 30, 2019, 07:56:52 AM
 #4

As an alternative to torrent you can also think to use a IPFS https://ipfs.io/ to host the actual page.

Anyway i agree to store just a link to the data, whatever blockchain you plan to use.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!