WebSite X5Help Center

 
Predrag Šneler
Predrag Šneler
User

How to protect page in local host (pc folder)  en

Auteur : Predrag Šneler
Visité 717, Followers 1, Partagé 0  

Hello,

I want to export and using site only in localhost folder. When I create user group and member with password and put login part (utility) on checking site I'm getting this screen: How to protect lock page for local host folder using?

thank you

<?php require_once("res/x5engine.php"); ?> <?php imCheckAccess('3', ''); ?> <!DOCTYPE html><!-- HTML5 --> <html prefix="og: http://ogp.me/ns#" lang="en-GB" dir="ltr"> <head> <title>Usluge - UNIVERZAL GRADNJA</title> <meta charset="utf-8" /> <!--[if IE]><meta http-equiv="ImageToolbar" content="False" /><![endif]--> <meta name="author" content="Univerzal gradnja" /> <meta name="generator" content="Incomedia WebSite X5 Evo 2020.3.8 - www.websitex5.com" /> <meta property="og:image" content="http://localhost/favImage.png" /> <meta property="og:image:type" content="image/png"> <meta property="og:image:width" content="725"> <meta property="og:image:height" content="649"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="style/reset.css?2020-3-8-1" media="screen,print" /> <link rel="stylesheet" href="style/print.css?2020-3-8-1" media="print" /> <link rel="stylesheet" href="style/style.css?2020-3-8-1" media="screen,print" /> <link rel="stylesheet" href="style/template.css?2020-3-8-1" media="screen" /> <link rel="stylesheet" href="pluginAppObj/pluginAppObj_3_24/custom.css" media="screen, print" /> <link rel="stylesheet" href="pluginAppObj/imHeader_pluginAppObj_03/custom.css" media="screen, print" /> <link rel="stylesheet" href="pcss/usluge.css?2020-3-8-1-638063088597254221" media="screen,print" /> <script src="res/jquery.js?2020-3-8-1"></script> <script src="res/x5engine.js?2020-3-8-1" data-files-version="2020-3-8-1"></script> <script src="pluginAppObj/pluginAppObj_3_24/main.js"></script> <script src="pluginAppObj/imHeader_pluginAppObj_03/main.js"></script> <script> window.onload = function(){ checkBrowserCompatibility('Your browser does not support the features necessary to display this website.','Your browser may not support the features necessary to display this website.','[1]Update your browser[/1] or [2]continue without updating[/2].','http://outdatedbrowser.com/'); }; x5engine.utils.currentPagePath = 'usluge.php'; x5engine.boot.push(function () { x5engine.parallax.start(); }); x5engine.boot.push(function () { x5engine.imPageToTop.initializeButton({}); });

Posté le
4 RéPONSES - 2 UTILE
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois DEMeilleur utilisateur du mois EN

I don't know if I understood the question correctly.

If a directory on the web space is to be protected and there are only a few users, then possibly protect a directory with .htaccess and .htpasswd.

Lire plus
Posté le de Daniel W.
Claudio D.
Claudio D.
Moderator
Meilleur utilisateur du mois IT

page protection needs pages to be in PHP.
PHP only works if you publish online.
To get it working locally, you have to use a web server, e.g. XAMPP

Lire plus
Posté le de Claudio D.
Predrag Šneler
Predrag Šneler
User
Auteur

Thank you all for your answers :-)

Lire plus
Posté le de Predrag Šneler