2 ms·
Hmm. So I've been writing an uptime monitor and this is an interesting idea. How would you update the hash and how would you handle dynamic content? If the serv
by cracell 17y ago
Hmm. So I've been writing an uptime monitor and this is an interesting idea. How would you update the hash and how would you handle dynamic content? If the service offered this feature via API seems like a lot of work on the user end.
- DenisM 17y agoThe site is AJAX so all files (HTML, JS) are static. I am perfectly fine copy-pasting the hashes manually each time I roll out the new version, like this file: file1.html 123112 scripts/script1.js 333222 scripts/script2.js 444555 The dynamic part of the site comes from a database, but there is no logic in it - only code, and thus possibility to inject malicious sctript, odd behavior or offensive visual through hacking the web site is vastly reduced by verifying hashes and alerting me about any changes.