+ 2

Webpage protection (html JavaScript)

How to prevent accessing a home page if not logged-in? In html and JavaScript.

8th Mar 2019, 8:01 AM
Lucas Tivana
Lucas Tivana - avatar
12 odpowiedzi
+ 10
Or NodeJs which is better than php and is in javascript. ^_^
8th Mar 2019, 10:11 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 9
Sessions? Cookies? There are many ways to authorize.
8th Mar 2019, 8:09 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 9
That's not a backend framework...
8th Mar 2019, 8:12 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 8
What backend framework do you use?
8th Mar 2019, 8:11 AM
Valen.H. ~
Valen.H. ~ - avatar
8th Mar 2019, 9:15 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
Lucas Tivana You should read about backend and handling web pages using backend. PHP and Node.js are popular for this. You can also use database that will save the credentials for logging in. When the login is successful, you can display the homepage using the backend language.
8th Mar 2019, 10:16 AM
Kartik
Kartik - avatar
+ 2
rename them to .php
8th Mar 2019, 10:56 PM
Balázs
Balázs - avatar
+ 1
Can u please help me with code
8th Mar 2019, 8:10 AM
Lucas Tivana
Lucas Tivana - avatar
+ 1
JavaScript
8th Mar 2019, 8:11 AM
Lucas Tivana
Lucas Tivana - avatar
+ 1
Lool sorry just a beginner. Example plz: But I used html and javascript on my webpage.
8th Mar 2019, 8:15 AM
Lucas Tivana
Lucas Tivana - avatar
+ 1
Ok thanks
8th Mar 2019, 4:57 PM
Lucas Tivana
Lucas Tivana - avatar
0
Thanks i have one problem, my files are in html not php. What do i do?
8th Mar 2019, 10:14 AM
Lucas Tivana
Lucas Tivana - avatar