简体   繁体   English

HTML编码以验证网站中的用户

[英]HTML coding to authenticate user in the websites

I am having a doubt regarding whether it is possible to authenticate the user with html coding? 我是否可以使用html编码对用户进行身份验证有疑问? If it is, I want the html script to authenticate user in my website. 如果是,我希望html脚本对我的网站中的用户进行身份验证。 Or it is enough to tell me the websites which is offering free user authentication. 还是告诉我提供免费用户身份验证的网站就足够了。

with regards Anand 关于阿南德

You cannot use pure HTML to create an authentication system, and using client-side JavaScript is not a good idea, for security reasons. 您不能使用纯HTML来创建身份验证系统,并且出于安全原因,使用客户端JavaScript不是一个好主意。 To make the authentication system reliable you would have to involve some kind of server-side language like ASP.NET, PHP, Ruby or similar. 为了使身份验证系统可靠,您必须使用某种服务器端语言,例如ASP.NET,PHP,Ruby或类似语言。

If you don't want to do it your self, there are plenty of CMS solutions that has built-in authentication. 如果您不想自己做,则有很多内置身份验证的CMS解决方案。 You could either choose a hosted solution like Wordpress or you could pick any CMS solution you like and host it on your own. 您可以选择像Wordpress这样的托管解决方案,也可以选择自己喜欢的任何CMS解决方案并将其托管。

Here are a few to choose from: 以下是一些选择:

Microsoft also offer a free hosting solution for Azure websites , where they offer a simple click-to-setup service for a large number of CMS solutions, including above mentioned. 微软还为Azure网站提供了免费的托管解决方案,他们为大量CMS解决方案(包括上述内容)提供了简单的单击设置服务。

password and username authentication using javascript is a very bad idea, anyone could just bypass it through your html file or js file. 使用javascript进行密码和用户名身份验证是一个非常糟糕的主意,任何人都可以通过您的html文件或js文件绕过它。 You should use PHP and PDO or mySqli in authenticating users. 您应该使用PHP和PDO或mySqli对用户进行身份验证。

HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.

HTML is just used to output something for the users. HTML仅用于为用户输出内容。 You cannot make an authentication system with HTML. 您无法使用HTML制作身份验证系统。

The best and the easiest way of authenticating, is to combine HTML with PHP. 最好和最简单的身份验证方法是将HTML与PHP结合使用。 You can also do it with any other server side programming language . 您也可以使用任何其他server side programming language

You can checkout PHP Login systems, which are very reliable. 您可以签出非常可靠的PHP Login系统。 You can surely grab code snippets that you can use as is. 您一定可以抓住可以直接使用的代码段。

无法使用HTML,OpenID呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM