Author

Topic: How to host a website in bitcoin transaction? (Read 197 times)

hero member
Activity: 784
Merit: 1416
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.
legendary
Activity: 1042
Merit: 2805
Bitcoin and C♯ Enthusiast
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
copper member
Activity: 2940
Merit: 4101
Top Crypto Casino
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.
copper member
Activity: 23
Merit: 32
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?
Jump to: