Welcome Guest, Not a member yet? Register   Sign In
CSRF protection for direct url access
#2

What do you mean by "direct url access"?

Have you implemented user login/authentication?

If user does not have to log in, effectively, if someone can figure out the URL, they can just browse to it.

If user session authentication is in place, you can put general check in controller __construct method to ensure user has logged in by that point, and on individual controller methods check that user is trying to access/edit their own user profile (or profiles they are allowed to see).
Reply


Messages In This Thread
RE: CSRF protection for direct url access - by Pertti - 11-30-2018, 07:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB