Hi,
Any one of you who has worked on CI knows that it uses a segmental approach for the urls, eg.:
index.php/controller/function/params
Let's suppose I have put in place the following URL to submit the contact us form info:
index.php/contact/submit_contact
Now there is one thing that seems wrong. What if a bad guy sees the source code of my contact us page and looks at the action attribute of the form? He can simply copy-and-paste into a browser's address bar directly and my form will be submitted with empty values.
Another bad thing he can do and mostly likely will do is the CSFR cross-site-forgery.
How to avoid this problem.
Note: I know I need to validate my form against empty values and not submit it if fields are empty, but I am looking for a better generic solution to this problem.
Thanks