This time I would like to share something technical. As this is a very easy trick for hackers to break the website security or find out website vulnerability.
To overcome such issues, there are several solution. Specifically, in the example I gave, you can make it more secure by adding validations using server side scripting.
Here is how W3Schools explains “noscript” tag :
The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting.
The noscript element can contain all the elements that you can find inside the body element of a normal HTML page. The content inside the noscript element will only be displayed if scripts are not supported, or are disabled in the user’s browser.
Here is how I use noscript tag in all my sites. Take a look at the following code.
<!-- Add this into Head tag --->
<!-- Add this into Body tag where you want to display your error -->
If you like it, Sharing is Caring !