Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Hasła na folder za pomoca pliku login.php, prosze o pomoc
Gokou
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.04.2005

Ostrzeżenie: (0%)
-----


Czesc wam. Zwracam sie z prosba wyjasnienia rzeczy zawartej w temacie. Chce nalozyc na podstrone jedno hasło aby sie zalogowac. Probowałem za pomoca "htpasswd.php" ale wpisane dane loginu i hasła nie działaja. Zmianiłem CHMOD na 77 i po "instalacji" na 775 ale i tak nie wchodzi. Skryptów niecche używac bo kazdy toche madrejsz zajrzy do źródła i juz ma. Prosze o jakakolwiek pomoc w tej sprawie. Jestem niestety bardzo słabo rozwieniety w php
Go to the top of the page
+Quote Post
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Cytat
Skryptów niecche używac bo kazdy toche madrejsz zajrzy do źródła i juz ma

że niby kto ci podejrzy te skrypty? skrypty js można podejrzeć, anie php(przy dobrze skonfigurowanym serwerze),no chyba że ty skrypty php udostępniasz publicznie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post
Gokou
post
Post #3





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.04.2005

Ostrzeżenie: (0%)
-----


miałem skrypty i w "notatniku" bylo trzeba wpisac login i hasło

(w notatniku bo tym edytuje strony www)
Go to the top of the page
+Quote Post
nospor
post
Post #4





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Czegoś nie kumam.
Masz skrypt php, tak? Edytujesz go w notatniku i widzisz jego treść, tak?
No i chwała tobie. Twój skrypt to go widzisz. Ale ludzie po drugiej strony kabla go nie widzą.

hihi, dalej nie kumam o co ci chodzi (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post
Gokou
post
Post #5





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.04.2005

Ostrzeżenie: (0%)
-----


Kod
W ramach HEAD

<!--
Created by Greg Boyd on July 30, 1997
To use this teleport/password feature as I call it, all you need to do
is cut and paste the entire code including what you are reading.  
The file takes what you put in the box and takes you to the page of that name.  
It is easier to use if you include a list of the sites on your pages.
If you have problems getting this to work, email me at mims@frontiernet.net.net .
-->

<script Language="JavaScript">
// Greg Boyd;   mims@frontiernet.net   URL:   http://www.frontiernet.net/~mims/
// Password Java Script (v1.0);  
// Please honor my hard work, if you use a variant of this in your page, then
// please email me :) and keep the above comments in the Script.
//
//   This code is Copyright (c) 1997 Greg Boyd,
//   all rights reserved. In order to receive the right to license this
//   code for use on your site the original code must be copied from the
//   Web site http://www.frontiernet.net/~mims/. License is granted touser to
//   reuse this code on their own Web site if and only if this entire copyright
//   notice is included. Code written by Greg Boyd of http://www.frontiernet.net/~mims/.

function password (pass)  {

var password = ''


if (password != null){
        location.href= pass + ".htm";
}
}
</script>
W ramach BODY

Hasło
<FORM name="login">
<INPUT NAME="pass"><br><br>
<INPUT TYPE="button" VALUE="Kliknij" onClick="password(form.pass.value)">
<INPUT TYPE="RESET" VALUE="Wyczyść">
</form>



To jest mniej wiecej skrypt który miałem i trzeba w nim podac hasło :/
Go to the top of the page
+Quote Post
nospor
post
Post #6





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




no teraz kumam (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) .
Js na hasła to się nie nadaje.
Walnij w php (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
Gokou
post
Post #7





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.04.2005

Ostrzeżenie: (0%)
-----


Wlasnie ja kieruje sie z taka prosba zeby mi ktos walnol instrukcje jak sie to rni (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
zalew
post
Post #8





Grupa: Zarejestrowani
Postów: 407
Pomógł: 0
Dołączył: 24.10.2002
Skąd: warszawa

Ostrzeżenie: (0%)
-----


.htaccess
Cytat
AuthName "podaj haslo"
AuthType Basic
AuthUserFile /pelna_sciezka_do_katalogu/public_html/.htpasswd
require user zenek

pelna scieze sprawdz przez $_SERVER['DOCUMENT_ROOT']
.htpasswd
Cytat
zenek:zaszyfrowane_haslo

zaszyfrowane haslo robisz
crypt ("moje haslo 123")


proste jak drut, 2 minuty i po sprawie
jak wpiszesz w google htpasswd to bedziesz mial milion instrukcji identycznych z moja powyzsza

Ten post edytował zalew 20.04.2005, 15:09:15
Go to the top of the page
+Quote Post
Gokou
post
Post #9





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.04.2005

Ostrzeżenie: (0%)
-----


Probowałem tym sposobem tylko miałem to w pliku "htpasswd.php" wpisałem hasło pliki sie utworzyły ale podany wczesniej login i hasło nie dzxiałał nie wiem dlaczego (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) ...Jest moze jeszcze jakis inny sposób
Go to the top of the page
+Quote Post
behemot
post
Post #10





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 17.07.2003
Skąd: Tarnów/Kraków

Ostrzeżenie: (0%)
-----


Cytat(zalew @ 2005-04-20 15:06:36)
.htaccess
Cytat
AuthName "podaj haslo"
AuthType Basic
AuthUserFile /pelna_sciezka_do_katalogu/public_html/.htpasswd
require user zenek

pelna scieze sprawdz przez $_SERVER['DOCUMENT_ROOT']

Ja bym nie proponowal trzymania pliku z haslami w glownym katalogu strony. Najlepiej umiescic go poza katalogiem serwera www.

Pozdrawiam,
kuba
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.09.2025 - 17:45