I’ve implemented a basic system to allow visitors to post anonymous messages. I am not a web programming expert but I’ve attempted to cover the basics of security - Parametrized queries to avoid sql injection, html entities replaced with the equivalent codes (for example - ‘<’ replaced with ‘<’ using php’s htmlentities function)
I’ve implemented it on a ‘test’ page at first. Feel free to try it out. If you’re a web developer (I know there are a few on the dope) please suggest further ways to improve security.
Note: I am aware of the risk of people posting crude messages. I am prepared to take that risk on the basis that I’ll remove anything I deem inappropriate. Also due to the htmlentities thing nobody would be able to post clickable links.
There are ‘better’ places to put this kind of post but I feel I can trust the dope a bit better than, say, reddit or stackoverflow.com, both of which are likely to have a few mischievous accomplished website vandals. Basically if you can ‘break’ the website in a non-melicious way (for example if you were somehow able to gain access to the database you might add a record saying ‘I got in here and I shouldn’t have. you might want to fix this’. A malicious person might instead choose to delete entire databases)
forgot the link!
http://notails.com/index_test.html
Once I’m confident this is secure I’ll make it the front/landing page. (Also rearrange the visual structure a bit)