This is a simple question, and I'm sure I could figure it out myself, but I wanted some of your ideas. How would you protect users from uploading malicious code through forms. For example. Say I wanted to cause harm to this forum and decided I hated the php forum so I wanted to just delete the directory. My first plan would be to post the following code in one of my threads
PHP Code:
<?php rmdir('php-forum'); ?>
Of course, I would do this without the code tags around it. How could you protect your forms from code like this. I believe this forum converts symbols like < to < and I think this is a simple security feature they use to protect there forums, and I know how to do this with php, but are there better more advanced ways of protecting yourself?
Thanks
__________________
Alex
|