Jump to content

Recommended Posts

Hi all,

I've found this site during searching google for my security questions.
One of the biggest problem in web programming is securiy. There are lots of "to-do's" but sometimes we can miss the simple points.

I am working on a link manager project which will be usable by public.

I decided to implement "limit the allowed characters" method for protection. For example;

I am using [code]$string = eregi_replace('[^a-zA-Z0-9]','',$string);
return $string;[/code]for parsing and cleaning user inputs.

But the problem is parsing and inserting the user provided url's to db ...
How should i handle user urls ?

I am redirecting users with this frame setup;
[code]<frame name="main" src="<?=$url;?>" scrolling="auto">[/code]

Any idea ?
Thanks
Link to comment
https://forums.phpfreaks.com/topic/5435-secure-processing-user-input-validation/
Share on other sites

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.