简体   繁体   English

Https,Php安全登录页面?

[英]Https, Php secure login page?

I am new to php, I can do a simple login page, eg create form, submit form, process and authenticate in a php page and so on. 我是php的新手,我可以做一个简单的登录页面,例如创建表单,提交表单,处理和在php页面中进行身份验证等等。

I read somewhere on the internet, and saw some big companies like banks, google and yahoo, their login form is in "https" not "http". 我在互联网上的某个地方读过,看到像银行,谷歌和雅虎这样的大公司,他们的登录表单是“https”而不是“http”。 So I try google what is "https" thing. 所以我试试google什么是“https”的东西。 Well, I could not say I fully understand what that thing is, but I think I know the concept, ie create a more secure login page. 好吧,我不能说我完全理解那是什么,但我想我知道这个概念,即创建一个更安全的登录页面。

I believe php could do it (cause I saw wordpress using https, and wp is using php). 我相信php可以做到(因为我看到使用https的wordpress,而wp正在使用php)。 Is there any tutorial or can you guys give a sample code on how to do a secure login https page with php? 有没有教程,或者你们可以给出一个如何用PHP进行安全登录https页面的示例代码? Not necessary full code ( cuz I dun want to trouble you guys ), but if can give a full code, would me most appreciated :) 没有必要的完整代码(因为我不想麻烦你们),但如果可以给出完整的代码,我最欣赏:)

You need to buy a SSL certificate from a company like Verizon or InstantSSL . 您需要从VerizonInstantSSL等公司购买SSL证书。 Then, you will need a web host who has Open SSL or another software for processing SSL certifcates installed. 然后,您将需要一个具有Open SSL或其他软件的Web主机来处理安装的SSL证书。

When you purchase a certificate from Verizon/Instant SSL, they will give you some encrypted code using which you could configure your Open SSL software, and then having https:// urls will work. 当您从Verizon / Instant SSL购买证书时,他们会为您提供一些加密代码,您可以使用它们配置Open SSL软件,然后使用https:// urls。

This isn't something you can do using plain php. 这不是你可以使用普通的PHP做的事情。

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

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