how do I block the ' in the referral system? I mean what is the query of my database if I want to prevent my site from XSS Attack or SQLi (Sql injection). I have been debugging my website for about 9 hours and I found out that there is a bug in the referral area.
Now my question is, how can I block the ' sign?