---
title: "Comment by Rahul Kumar on \"Securing your HTML Page with JavaScript location.assign() Method\" | Hashnode"
description: "Hi, do you know user can also access your page if they are not authenticated? They can easily disable JS and ...umma."
url: "https://hashnode.com/posts/securing-your-html-page-with-javascript-locationassign-method/61136ff5c0623972de8a6f82/comment/6113b1ce5f85bc2b3d11fa13"
---

[Discussion](https://hashnode.com/posts/securing-your-html-page-with-javascript-locationassign-method/61136ff5c0623972de8a6f82)

Comment [Securing your HTML Page with JavaScript location.assign() Method](https://hashnode.com/posts/securing-your-html-page-with-javascript-locationassign-method/61136ff5c0623972de8a6f82)

[Rahul Kumar](https://hashnode.com/@rahuldsabyte)

[Aug 11, 2021](https://hashnode.com/posts/securing-your-html-page-with-javascript-locationassign-method/61136ff5c0623972de8a6f82/comment/6113b1ce5f85bc2b3d11fa13)

Hi, do you know user can also access your page if they are not authenticated?

They can easily disable `JS` and ...umma.

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Aug 11, 2021](https://hashnode.com/posts/securing-your-html-page-with-javascript-locationassign-method/61136ff5c0623972de8a6f82/comment/6113b1ce5f85bc2b3d11fa13#reply-6113b37e5f85bc2b3d11fa55)

If you disabled JS to get to the dashboard.

How will you get the dashboard features to work??? 🤷‍♂️

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Aug 11, 2021](https://hashnode.com/posts/securing-your-html-page-with-javascript-locationassign-method/61136ff5c0623972de8a6f82/comment/6113b1ce5f85bc2b3d11fa13#reply-61141979119030192497a68f)

[Atanas Hristov](https://hashnode.com/@ahristov) and [Olubisi Idris Ayinde](https://hashnode.com/@olanetsoft)

please do you have anything to say to this? 🙏

[Otman Bouchari](https://hashnode.com/@Obouchari)

[Aug 12, 2021](https://hashnode.com/posts/securing-your-html-page-with-javascript-locationassign-method/61136ff5c0623972de8a6f82/comment/6113b1ce5f85bc2b3d11fa13#reply-6114b141119030192497aed4)

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay) This is not a security measure to rely on, but it is helpful when you have a SPA and don't want to redirect using the server. I think React router under the hood uses such functionality, but you definitely don't want to expose the state of your web app, only the layout!
