Thanks SHOBHIT RASTOGI, glad you liked StaticShield
– One can block the script in browser and can access the secured page even without password.
I have taken that into account - If javascript is blocked from executing, the <noscript> tag instantly gets activated which then redirects the page here which asks the user to enable Javascript (and links them to a guide). Moreover Javascript frameworks like react and vue require js to render and paint the screen itself.
– Unhide staticshield-div
When a password protected site loads, the rendered HTML is not displayed with the help of CSS. And as soon as the javascript script loads, the user is redirected to login page if no valid token exists.
Removing the staticshield-div is practically not possible because the rendering of html and css happens in milliseconds usually, and opening the DevTools and removing the staticshield-div class in this short period of time is practically impossible.
Frameworks like Next.js (version 11) prioritize the execution of client js scripts before the rendering of html and css when the stratergy is set to beforeInteractive. More info here
Please do let me know your queries 🙂