WebSite X5Help Center

 
John B.
John B.
User

Simple Password Protect Page  en

Autor: John B.
Visited 259, Followers 1, Udostępniony 0  

is ther a way to protect a page with a simple password that I choose, dont want regristrtaions just a pass word to gain access to 1 page e.g "letmein"

Posted on the
7 ODPOWIEDZI - 1 PRAWIDłOWA ODPOWIEDź
Giancarlo B.
Giancarlo B.
User
Najlepszy Użytkownik miesiąca IT

sure, just activate the lock on that page (protected page), and assign the group that can access it, in this case you can insert yourself as administrator or generic user in the group

Czytaj więcej
Posted on the from Giancarlo B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Najlepszy Użytkownik miesiąca ES
John B
is ther a way to protect a page with a simple password that I choose, dont want regristrtaions just a pass word to gain access to 1 page e.g "letmein"

(It > En) ...Maybe you might be interested in this simple EXTRA invention of mine:
> protezione-semplice    ...  (pass=abcxyz123)

.

ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Daniel W.
Daniel W.
User
Najlepszy Użytkownik miesiąca DENajlepszy Użytkownik miesiąca EN

You can also create a pseudo user in WebSite X5 under “1 Settings > Access Management” whose access data consists of a test email address and the password.

These access data can then be used by many users and can be assigned to a page, see post by Giancarlo B. with screenshot above.

Czytaj więcej
Posted on the from Daniel W.
John B.
John B.
User
Autor

(It > En) ...Maybe you might be interested in this simple EXTRA invention of mine:
> protezione-semplice    ...  (pass=abcxyz123)

Thats exactly whay I am looking for

Czytaj więcej
Posted on the from John B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Najlepszy Użytkownik miesiąca ES

.. OK ... + code:

<script>
/** -- password EXTRA by KolAsim --**/
const imgK = "https://static.vecteezy.com/ti/vettori-gratis/p2/4099665-moda-donna-elegante-gratuito-vettoriale.svg";
const noCopiaAlertK = "Vietata qualsiasi operazione di copia in questa pagina.";
const errorePassAlertK = "Accesso negato: password errata.";
const maxPassAlertK = "Tentativi terminati";
const erroretURLK = "index.html";
const maxTentativiK = 3;
/*---*/
const chars = "abcdefghijklmnopqrstuvwxyz0123456789";
const indici = [0,1,2,23,24,25,27,28,29];
/*---*/
const passwordCorretta = indici.map(i => chars[i]).join(''); /*---*/ function controlloK(password) { if (password !== passwordCorretta) { alert(errorePassAlertK); return false; } $("#controlloanniK, #formaccessoK").hide(1000); return true; } function protezioneK() { alert(noCopiaAlertK); return false; } /*--- */ $(document).ready(function () { /*K*/ let tentativiK = 0; /*---*/ $(document).on("dragstart selectstart contextmenu", function () { protezioneK(); return false; }); $(document).on("keydown", function (e) { if (e.ctrlKey || e.metaKey) { const tastiVietati = ['c','u','s','p','x','a','v']; if (tastiVietati.includes(e.key.toLowerCase())) { protezioneK(); e.preventDefault(); } } }); /*---*/ const divK = ` <div id="controlloanniK" style=" position:fixed; width:100%; height:100%; background-image:url(${imgK}); background-size:cover; background-position:center; opacity:0.5; z-index:100000;"> </div>`; $("body").before(divK); /*---*/ const formaccessoK = ` <div id="formaccessoK" style=" position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background-color:lavender; z-index:1000000; padding:30px; border-radius:30px; font-size:24px; border: inset 10px red;"> <form id="accessoForm"> <label>Password di accesso:</label><br> <input type="password" id="passwordK" required style="font-size:24px"><br><br> <button type="submit" style=" font-size:24px; cursor:pointer; border-radius:10px; padding:10px"> Accedi </button> </form> </div>`; $("body").prepend(formaccessoK); /*---*/ $('#accessoForm').on('submit', function (e) { e.preventDefault(); tentativiK++; const passwordInserita = $('#passwordK').val(); if (tentativiK > maxTentativiK) { alert(maxPassAlertK); window.location.href = erroretURLK; return; } controlloK(passwordInserita); }); /**K**/ });
</script>

.................

ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Najlepszy Użytkownik miesiąca ES

...paste the code from Step 3 into the Properties of the page you want to protect, in the Expert | Code | Before Closing /HEAD Tag.

...or you can paste the code into an HTML Code object placed in the grid of that page.

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪