Prohibit direct access to a URL (JS) [duplicate]

-1

I made a website, and in it I need to prevent it from entering it by URL access, but I did not create a session in PHP because the login is validated with token by jwt with js.

Is there any secure way to just let anyone who logged in to the site enter certain pages with js?

    
asked by anonymous 22.05.2018 / 19:49

1 answer

0

This type of action you need to handle on your backend. It will do the redirect. Even though it will validate the JWT token.

    
23.05.2018 / 00:02