PHP Programming Protection


Image source: www.phpspot.org

While you cannot entirely realize to protect your site, yet there are few precautions that you can make for better protection of PHP programming. Some of these are:

- You should check the referrer, for being sure that the information sent is from your website and not an outside source. Since, there are maximum chances of the information being fake.

- Restriction of the type of extension files being uploaded on the website is yet another way of security check.

- Renaming files is another way in which the program can be secured. This procedure involves the checking of double-barreled extensions like yourfile.php.gif.

- Changing the permission command for the upload folder so that files within it are not executable.

- All the alterations created by the user should be allowed only when they ‘Login’ into the database. On the other hand the owner of the site should always keep a close watch on all files being uploaded and then make them live.

Sorry, the comment form is closed at this time.


Bad Behavior has blocked 14 access attempts in the last 7 days.