Sunday, 5 July 2020

Checking if JavaScript is enabled on the client

Hey r/node,I am looking for a way of checking if the client has disabled JavaScript server-side. I want to do it server-side to avoid as much as I can bypasses and workarounds. I read about setting a cookie to flag the user if it hasn't JS but doesn't it require JavaScript to set a cookie? I need a way to do this only with JS, HTML or EJS and of course server-side checking is key. If you have a client side solution then still let me know. I already know tricks like setting the body display property to none and then changing it with JS but you can still bypass it pretty easily. Thanks!

Submitted July 05, 2020 at 02:33PM by _folgo_

No comments:

Post a Comment