Šifriranje web stranice
Moderators: pedja089, stojke369, [eDo], trax, LAF
Šifriranje web stranice
može li mi netko pomoći kako da stavim šifru na jednu web stranicu, tako da ju mogu samo ja otvarati, probao sam preko coociesa i sessiona ali to baš me nije impresioniralo, mislio sam da li postoji neka mogućnost preko cpanela da se postavi ta šifra pa kada pokrećem tu stranicu da me pita šifru i dalje mogu raditi bez problema
http://land1.blog.hr" onclick="window.open(this.href);return false;
I like software and hardware
My hobbies are PHP programmering, PCB creating and C++ 3D progrmming
http://www.speedtest.net/result/698562022.png" onclick="window.open(this.href);return false;
I like software and hardware
My hobbies are PHP programmering, PCB creating and C++ 3D progrmming
http://www.speedtest.net/result/698562022.png" onclick="window.open(this.href);return false;
-
- Napredujem
- Posts: 125
- Joined: 05-11-2008, 23:39
- Location: preko bare :)
Re: Šifriranje web stranice
Naravno, imas opciju u Cpanelu
I onda zastii folder koji zelis, ako hoces da cim upises ime stranice da odma trazis sifru zastiti public_html folder... itd itd
Znaci Password protected directoriesI onda zastii folder koji zelis, ako hoces da cim upises ime stranice da odma trazis sifru zastiti public_html folder... itd itd
Re: Šifriranje web stranice
hvala, u početku sam imao problema s Frontpage extensionsom, ali kada sam ga disablirao onda se radi
http://land1.blog.hr" onclick="window.open(this.href);return false;
I like software and hardware
My hobbies are PHP programmering, PCB creating and C++ 3D progrmming
http://www.speedtest.net/result/698562022.png" onclick="window.open(this.href);return false;
I like software and hardware
My hobbies are PHP programmering, PCB creating and C++ 3D progrmming
http://www.speedtest.net/result/698562022.png" onclick="window.open(this.href);return false;
Re: Šifriranje web stranice
To ti je password na direktorij.. skriptu/stranicu na primjer mozes zakljucat sljedecom skriptom:
U link dodas ?setcookie=tuvokalpha11 i otvoris. Imat ces pristup 1h
Nadam se da je korisno
Code: Select all
<?php
if($_GET['setcookie']=="tuvokalpha11"){
$cookie = setcookie("doctor", "l5t3torres", time()+3600);
if (!empty($cookie)) {
echo"Login uspijesan! Trajanje: 1 sat";
}
else{
echo"Doslo je do greske. Pokusaj opet!";
}
}
else{
if ( $_COOKIE['doctor'] != "l5t3torres" ){
die("<|>Pristup odbijen. Cookie nije pronadjen<|>");
}
}
#(c)2009 by Futurist
?>
TU IDE STRANICA:
<br>blablalbla<br>blabla
Nadam se da je korisno