Autor Beitrag
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Mi 01.02.06 12:54 
Hi Leute,
ich habe auf meinem Webserver ein Verzeichnis, welches mit einem .htaccess Schutz versehen ist. Ich möchte nun ein Login-Skript machen, in dem man Pass und Username eingibt, aber nicht die für htaccess sondern von meiner eigenen Server-Software. Nun möchte ich, wenn die Daten als richtig bestätigt worden, die Zugangsdaten für htaccess manuell eingeben lassen, sodass der User weder den Benutzername noch das Passwort für den htaccess-Bereich sieht. Wie geht das (also nicht die if-Abfrage, sondern das eintragen des Pass etc.)?

MfG, ScorpionKing!

_________________
Aus dem Urlaub zurück!
Tsuneo
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 21

Windows XP Professional SP2, SuSE Linux 10.0, Ubuntu
Delphi 2005 Personal, Delphi 6 Personal
BeitragVerfasst: Mi 01.02.06 13:53 
Hallo,

Schau mal hier: aktuell.de.selfhtml....cks/php/loginsystem/
Ich hoffe ich habe deine Frage richtig verstanden... :wink:

Grüße,
Tsuneo

_________________
"It has been said that war is the price of peace… Angola and Sierra Leone have already paid too much. Let them live a better life."
Ambassador Juan Larrain
ScorpionKing Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Mi 01.02.06 17:17 
Jein, mir geht es darum die Login-Daten von htaccess zu ändern. Trotzdem vielen Dank!

_________________
Aus dem Urlaub zurück!
Tsuneo
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 21

Windows XP Professional SP2, SuSE Linux 10.0, Ubuntu
Delphi 2005 Personal, Delphi 6 Personal
BeitragVerfasst: Mi 01.02.06 18:42 
Hallo,

Meinst du vielleicht so etwas:

ausblenden Quelltext
1:
<a href="username:password@members.homepage.com">Anmelden</a>					


Wenn du nun auf den Link klickst, dann wirst du mit dem Benutzernamen "username" und dem Kennwort "password" auf der Seite "members.homepage.com" angemeldet.

Ich glaube aber, das diese Methode nicht mit allen Browsern funktioniert... :?

Grüße,
Tsuneo

_________________
"It has been said that war is the price of peace… Angola and Sierra Leone have already paid too much. Let them live a better life."
Ambassador Juan Larrain
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 01.02.06 19:18 
Im IE gehts.
Im FF bekommst Du eine Sicherheitswarnmeldung, dass eine Seite einen Authentifizerenden Link nutzt
Im Opera k.A.

Bei allen ist aber wichtig, dass Du trotzdem das http:// vorher mit angibst!

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
ScorpionKing Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: So 05.02.06 09:58 
Das mit dem username:password etc. ist sehr gut, aber wenn sich jemand den quelltext der Website anschaut, sieht er das Password und den Username!

_________________
Aus dem Urlaub zurück!
Tsuneo
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 21

Windows XP Professional SP2, SuSE Linux 10.0, Ubuntu
Delphi 2005 Personal, Delphi 6 Personal
BeitragVerfasst: So 05.02.06 15:14 
Hallo,

Hm, anders sehe ich da leider keine Möglichkeit... :?

Aber warum machst du nicht so etwas: aktuell.de.selfhtml....cks/php/loginsystem/
und lässt den Link:
ausblenden Quelltext
1:
<a href="http://username:password@members.homepage.com">Anmelden</a>					

nur dann Anzeigen, wenn die "Session" Aktiv ist... :wink:
So würde es ich zum Beispiel machen...

Grüße,
Tsuneo

_________________
"It has been said that war is the price of peace… Angola and Sierra Leone have already paid too much. Let them live a better life."
Ambassador Juan Larrain