CSRF (Cross-site request forgery) attack example and prevention in PHP
I have an website where people can place a vote like this: http://mysite.com/vote/25 This will place a vote on item 25. I want to only make this available for registered users, and only if they want to do this. Now I know when someone is busy on the website, and someone gives them a link like this: http://mysite.com/vote/30 then the vote will be places for him on the item without him wanting to do this. I have read the explanation on the OWASP website , but i don't really understand it Is this an example of CSRF, and how can I prevent this. The best thing i can think off is adding something to