Prohibit direct access to a URL (JS)

Asked

Viewed 282 times

-1

I made a site, and in it I need to prevent them from entering it by accessing the URL, but I did not create Session in PHP pq login validated with token by jwt with js.

Have some safe way to only let those who have logged on to the site enter certain pages with js?

1 answer

0

That kind of action you need to handle in your backend. It will redirect. Until pq it will validate the JWT token.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.