7 ms·
Show HN: 1Kb Webspace
Hey guys, I wanted to introduce you my hacknight project.
It is a tribute to onekb.net which has stopped its service a few years ago. Currently it is still a beta where external resources are also possible (but not the point ;) ) to get your opinions.
When it is finished, the source code will be open source. The secret word is therefore also hackernews.
P.S.: The source code is currently 2.4Kb I'm trying to make it smaller. 1Kb would be my goal.
- deleted 4y ago[deleted]
- thisisbrians 4y agoIt looks like it's down for the "night". OP: I like the idea. How can we keep up with what you're doing/when it's back online? I have some code to post :)
- Visurox 4y agoI work on temp secret code instead of a fixed word and expand it with placeholders so everyone should be able to post more than hi or test. ;)
- luto 4y agohaha, funny to use a 3rd-party hoster to provide web space to others! How did you end up using uberspace for this?
- Visurox 4y agoBecause I use uberspace for years and it perfect for projects like this before buying a domain.
- M4v3R 4y agoMaybe it's just me, but I have no idea what this is (I never saw onekb.net) and how to use it.
- Visurox 4y agoIts a 1Kb webspace. It should bring you to simply and shorten as much as you can instead of big size webpages. Archive.org has a backup: https://web.archive.org/web/20131208003019/http://onekb.net/ https://web.archive.org/web/20131208003019/http://onekb.net/
- Visurox 4y agoHeres an great example from the 1kbclub: https://1k.lom.me/ https://1k.lom.me/ Without the htaccess, the complete site is 555 bytes, so you would still have ~500 more until you hit the mark. :)
- deleted 4y ago[deleted]
- ktpsns 4y agoHaving to say that here: the shared Webspace hoster used for this project is superb. the most nerdy German spaced provider i ever met. https://uberspace.de/en/ https://uberspace.de/en/ it is pay-what-you-want and truly into Unix philosophy and modern linux userspace at ssh access level.
- Visurox 4y agoExactly. And its much better to use them, instead of buying a domain and webspace for may 5 users at the end who "code" more then test or hi.
- bradley_taunt 4y agoShameless plug - but feel free to add to the 1kB Club [0] once it hits the 1kB mark :) 0: https://1kB.club https://1kB.club
- Visurox 4y agoIts ok for me. :) I thought last night about but may I cant hit the mark with this project. Thanks god, I have a lot more. ;D
- focusedone 4y agohttps://1kb.ng5p.com https://1kb.ng5p.com
- bbbbbenji 4y agoI think I broke it by creating the username `index.html`. Sorry, I wasn't expecting it to do anything.
- Visurox 4y agoAh nice to know. Another point for the todo list! :)
- tomberek 4y agowinning
- Visurox 4y agoTrue, but this is exactly why I post it here. To see my mistakes and fix it before put up a project for everyone. :) Betas ftw!
- Visurox 4y agoFixed. :)
- unglaublich 4y agoNow try `.well-known/acme-challenge`, or the `google123456789asbcef.html` authentication file!
- Visurox 4y agoJust numbers and letters are allowed. but yeah, the google file whould be useless but possible bad. Will think about!
- Visurox 4y agoThe Username google43434343 would be too long. Max 12. :) Also input a forbidden list which should be filter the most crap in usernames. :)
- tialaramex 4y agoHmm, what is "the google[...].html authentication file" ? We roped off all of /.well-known/ and it is after all under a dot directory which ought to have been caught by a lot of existing software anyway, it seems like if people have things they want treated this way they ought to live in /.well-known/ too, it's not as though the registration process is onerous, you just need to write a specification for your thing.
- shawabawa3 4y agoYou can store up to 2KB of data in the URL, so you could actually run this service with zero storage costs, just generate a URL containing the provided code, could be signed if you want the username to be the only one with control of the content
- Visurox 4y agoTrue! I still like my way, but feel free to code it like you wish, more nerdy stuff is always welcome. :)
- wgx 4y agoAh, I already did this! :) https://wgx.github.io/anypage/editor https://wgx.github.io/anypage/editor
- Visurox 4y agoThats pretty smart! I rem I did something like this with a notepad. Would love to see to future code!
- davidcollantes 4y agoCode: https://github.com/wgx/anypage https://github.com/wgx/anypage
- mk12345 4y agoLooks cool! I created something similar a while ago, which allows you to store any kind of data in the url (web pages, audio, games,...). https://mkaandorp.github.io/hdd-of-babel/ https://mkaandorp.github.io/hdd-of-babel/
- app4soft 4y ago> https://mkaandorp.github.io/hdd-of-babel/ https://mkaandorp.github.io/hdd-of-babel/ It broke 3256x880 (225 kByte) PNG image, drastically ripping it to 407x110 (3.4 kByte) JPEG image.
- Visurox 4y agoSo, I will change the secret word for now (1-2 hours) to fix some stuff the user mention here (thanks!). And to the one who post the snake game, stop it, I need to code! ;) After then, the word will be the same as before.
- Visurox 4y agoFilter for username and text is online, thanks to the users! hackernews is the secret word again. :)
- tln 4y agoIs it working? I've got my code ready:) <style>#b{--s:12vmin;--w:100vmin;--h:calc(var(--w) / 2);position:relative;width:var(--w);height:var(--w);margin:auto;animation:spin 4s linear infinite;transform-origin:center}@keyframes spin{100%{transform:rotate(360deg)}}#b b{font:var(--s) monospace;height:var(--h);position:absolute;width:var(--s);left:calc(var(--h) - var(--s)/ 2);top:0;transform-origin:bottom center}</style><div id=b><script>for(i in s="because circular reasoning works ",s)b.innerHTML+=`<b style="transform:rotate(${360*i/s.length}deg)">${s[i]}`</script>
- Visurox 4y agowould be work.
- kris_wayton 4y agoSince you can insert arbitrary JS, it feels like you could write a loop that ajax posts a bunch of new webspaces when someone visits a webspace. Might look into protecting againt that.
- Visurox 4y agoJust for now. Later after the beta (which is nearly finished) no extern stuff will work, just the basics. But you’re absolutely correct!
- 4y ago
- Joyfield 4y agoKilobyte = kB.
- Visurox 4y ago[flagged]
- Visurox 4y agoThe site is going into maintenance again overnight. Many many folders consisting of only a "hi" or similar make me doubt if too many on HN don't know what is meant by "code". ;) Anyway, the secret word is changing and will be reset in about 15 hours. So far the beta has been quite successful though, as I've been pointed to many things that I didn't notice when I created it. If I decide to use the whole thing with my own domain and webspace instead of uberspace (which were only for the beta test), you will find out here. At the moment it doesn't look like it will be profitable.
- kris_wayton 4y ago> Many many folders consisting of only a "hi" or similar make me doubt if too many on HN don't know what is meant by "code". ;) I suspect it's just people experimenting with how it works, what it allows or doesn't, and so on. I wouldn't focus much on the cruft.
- dalmo3 4y agoWhat is code?
- dusted 4y agoForbidden words! Okay? Which words? Fuck that. I just said Hello..
- illys 4y agoNice. But please, if you are in IT, don't mix up kb and kB. There is a x8 size factor from the bit to the byte! [Edit: and "kilo" is a lowercase k]
- Visurox 4y agoI am not in IT, just an ordinary nerd who made an lower instead of an uppercase. On the website itself the title says all. 1024 bytes.
- andrewmcwatters 4y ago> Visurox 3 hours ago [flagged] [dead] | parent | next [–] > Sorry to tell you, but this is an absolutly useless comment. Even if I would say your right, is the only point an uppercase mistake. Yay. FeelGreatMan. Someone was teaching you the difference between a kilobit and a kilobyte in notation, and you responded this way? Sheesh.
- bArray 4y ago@Visurox Didn't work for me (wrong secret), but I like the idea. I was thinking about a variant of this, but I am somewhat concerned about abuse of such a service. Being 1kB you aren't going to get much in the way of image media, which is a major concern. Objectionable text I care less for. The concern I have is malicious JS (but I couldn't see how you handle this). A few things you would definitely need: 1. The ability to handle takedowns (i.e. somebody adds doxxing information, or uses it to launch some attack script). 2. The ability to edit content. My solution to this was that a key would be generated and this could be used to edit. 3. Some protection against creation abuse. You better believe somebody would create 1 billion 1kB pages, just because they can. I would maybe have it so that the user puts in an email and a page edit code is sent to that email address after some artificial delay. It's not fool-proof but might slow them down. Maybe you also do some additional checks, like keywords, entropy, etc. Anyway, all of these problems are precisely why I never decided to go through with this. Another idea was to provide an ultra-minimal VM web server, where you run some lightweight byte code to process requests. Maybe there are some exciting possibilities with this, but similar concerns are still there.
- Visurox 4y agoI posted before, that the script is in maintenance to fix this and that. 1.: Theres an email on the buttom. ;) 2.: I thought of it, but that would make everything more complicated. So, no, not for now. 3.: In the new beta is an temp secret word. Not the best captcha, but yeah, it works. And I think about a localhost entry if the user made a website before. May in mix with the edit function. If someone would spam, they will do, no matter if I save the IP or did hundred checks. Thats the net. :)
- bArray 4y ago> 1.: Theres an email on the buttom. ;) I saw this, but if it was to for some reason to get even remotely popular or abused, this would not scale. > 2.: I thought of it, but that would make everything more complicated. So, no, not for now. Sure, but it also allows for the right to delete content, etc. I don't think it has to be complicated. > 3.: In the new beta is an temp secret word. Not the best captcha, but yeah, it works. And I think about a localhost entry if the user made a website before. May in mix with the edit function. If someone would spam, they will do, no matter if I save the IP or did hundred checks. Thats the net. :) I don't think it needs to be fool-proof, just add enough resistance that it's not worth it. It is just 1kB after all, if the barrier is significant enough people just won't bother.