Chat encerrado / Chat closed
en:
This chat was closed due to the administrator's absence... Me. Previously, there was a real-time online chat here made using Firebase Realtime Database. Until the end of 2024, I had never seen anyone create something like that in NeoCities, and I decided to create it, also because my brother said it was impossible... well, I made it possible. Not only did I make it possible with Realtime DB, but also with Firestore, and I even created a P2P chat using Excel and Google Apps Script. Anyway, lately I haven't been paying much attention to the chat anymore. I was already thinking about shutting it down, but the trigger was when, about 9 days ago, someone discovered that just by using cURL and the database URL, they could delete all the messages (which weren't many), set the timestamp to 0, and bypass some frontend rules. Even with some database rules, Firebase kept updating, and I fell behind. Despite the scare, no sensitive data was improperly accessed... mainly because the chat only runs on user:message:timestamp... The document (table) containing the IP hashes, used to detect anomalous behavior and apply a ban (based only on IP), was neither altered nor accessed in the same way as the message document. If you are interested in analyzing the code, you can download it at: https://cillsghost.neocities.org/chat.txt I didn't save the tutorial as well, also because it's quite different from the website and only explains the basics... you can access it at: https://cillsghost.neocities.org/tutorial/tuto That's it, bye 🤝
pt-br:
Esse chat foi fechado devido a ausência do administrador.. Eu. Antigamente aqui havia um chat online em tempo real feito usando Firebase Realtime Database. Até o final de 2024 eu nunca tinha visto alguém criando algo assim no NeoCities e resolvi criar, também porque meu irmão falou que era impossível.. pois bem, fiz ser possível. Não só fiz ser possível com o Realtime db, como também com o Firestore e até criei um chat p2p usando Excel e Google Apps Script. Enfim, ultimamente não estou mais dando a mínima atenção pro chat, já pensava em desligar mas o esropim foi quando a uns 9 dias atrás alguém descobriu que só usando cURL e a URL do banco, poderia apagar todas as mensagens (que nem era muitas), definir o timestamp pra 0 e burlar algumas coisas do frontend. Mesmo com algumas regras do banco, o firebase foi atualizando e eu fui ficando pra trás. Apesar do susto, nenhum dado sensível vou acessado indevidamente.. até porque o chat só roda em cima de usuário:mensagem:timestamp.. O documento (tabela) que tem os hash dos IPs e que é usado para detectar comportamentos anômalos e aplicar um banimento (baseado só em IP) não foi alterado e nem acessado da mesma forma que o documento de mensagens. Se você tiver interesse em analisar o código, pode baixar em: https://cillsghost.neocities.org/chat.txt Não salvei o tutorial junto, também porque ele é bem diferente do site e só explica como fazer o básico.. você pode acessar em: https://cillsghost.neocities.org/tutorial/tuto É isso, tchau 🤝
---