Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: with CGI, How to have multiple usernames and passwords from a txt file (password.txt) file

by hippo (Bishop)
on Sep 28, 2018 at 08:56 UTC ( [id://1223209]=note: print w/replies, xml ) Need Help??


in reply to Re^2: with CGI, How to have multiple usernames and passwords from a txt file (password.txt) file
in thread with CGI, How to have multiple usernames and passwords from a txt file (password.txt) file

I am runnig Apache with http. If run it with httpS and self signed certificate , Will it be better?

Yes it will because then your users' passwords will not be sent over the wire in the clear for any malefactor to read. It would be better still if your certificate were not self-signed.

I am also trying to add "onclick"funtion to my below login.html file to a give error message, if wrong inputs were entered. I am currently having them in login.cgi code. which way is better?

Both is better. Having it on the front-end prevents unnecessary round trips. Having it on the back-end too allows handling for those with javascript disabled.

Note that neither of these questions have much to do with Perl. You might benefit from reading up on the general basics of web server (and web application) security first.

  • Comment on Re^3: with CGI, How to have multiple usernames and passwords from a txt file (password.txt) file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1223209]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-23 08:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found