News for hackers. Stuff that matters.
Re:Show HN: 1Kb Webspace by Visurox on Thursday January 26, 2023 @09:55AM (#34532352)
So, 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.

Re:Show HN: 1Kb Webspace by Visurox on Thursday January 26, 2023 @10:54AM (#34533305)
Filter for username and text is online, thanks to the users! hackernews is the secret word again. :)
Re:Show HN: 1Kb Webspace by tln on Thursday January 26, 2023 @02:27PM (#34537384)
Is 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>
Re:Show HN: 1Kb Webspace by Visurox on Saturday January 28, 2023 @02:19AM (#34555875)
would be work.
Re:Show HN: 1Kb Webspace by kris_wayton on Thursday January 26, 2023 @10:56AM (#34533344)
Since 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.
Re:Show HN: 1Kb Webspace by Visurox on Thursday January 26, 2023 @11:04AM (#34533501)
Just for now. Later after the beta (which is nearly finished) no extern stuff will work, just the basics. But you’re absolutely correct!
Re:Show HN: 1Kb Webspace by Visurox on Thursday January 26, 2023 @12:15PM (#34534759)
src and href are now forbidden tags. should be filter out the most crap.
Re:Show HN: 1Kb Webspace by tekni5 on Thursday January 26, 2023 @01:26PM (#34536245)
The site doesn't seem to work, says "Wrong secret word" for hackernews.

Is there a list of pages people have made?

So with out src & href you can't have links, seem like a massive limitation. Was trying to a submit a personal site with external links, guess it's no use now.

Re:Show HN: 1Kb Webspace by kris_wayton on Thursday January 26, 2023 @01:40PM (#34536516)
There's srcset, and things like generating content with JS, css base64 images (background: url(data:...), and lots of other loopholes. The author is going to re-live a lockdown path many others have gone through ;)
Re:Show HN: 1Kb Webspace by Visurox on Saturday January 28, 2023 @02:17AM (#34555866)
The prob is, when you allow clickable links, you cant count the spam sites or with evil code.