简体   繁体   中英

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.

I read somewhere on the internet, and saw some big companies like banks, google and yahoo, their login form is in "https" not "http". So I try google what is "https" thing. 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). Is there any tutorial or can you guys give a sample code on how to do a secure login https page with php? 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 . Then, you will need a web host who has Open SSL or another software for processing SSL certifcates installed.

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.

This isn't something you can do using plain php.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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