Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

A simple alternative to .htaccess secured pages with Firebase, PHP and Javascript

Notifications You must be signed in to change notification settings

patrickdobler/FirebaseAuthWebAPP-PHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FirebaseAuthWebAPP-PHP

This is a simple approach to protect pages and content with PHP, even if Javascript has been deactivated by the user. If you knew the absolute path to "/pages/profile.php", you could still read the content so far. If no current session is open you will now be directed back to the start page "index.php".

Even if this is better than pure Javascript and HTML, I cannot guarantee the security of the content. It is recommended to use a more professional solution like this one: https://github.com/kreait/firebase-php

Read this for a step by step howto guide.

https://medium.com/@bariskarapinar/firebase-authentication-web-app-javascript-3165ebc92b68

About

A simple alternative to .htaccess secured pages with Firebase, PHP and Javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 39.1%
  • Hack 32.9%
  • PHP 26.6%
  • CSS 1.4%