Jump to content

Recommended Posts

A project I'm working on involves allowing users to submit content (text/URLs, mainly) via form, which will be added to the same database as approved content (with an "unapproved" status). However, due to my relative ignorance with PHP, I'm hesitant to do this without more info regarding how to prevent abuse/exploitation of the system.

 

Any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/71245-phpmysql-and-secure-user-submissions/
Share on other sites

All POST / GET / COOKIE data should be checked for validity, e.g. is it empty, is there any sql injections (http://uk3.php.net/manual/en/function.mysql-real-escape-string.php), is there any characters that shouldn't be in there, is there code when there shouldn't (e.g. html, bb, php, javascript, vbscript, etc), you might want to run checks against a list of banned words. There's examples of how to deal with each of these somewhere within this forum...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.