» »

htaccess????

htaccess????

tomi77 ::

Zanima me kako bi lahko zavaroval mojo stran z geslom (tripod, f2s,...)? Ali je htaccess prava stvar? Ali ti serverji spoh podpirajo htaccess, kajti se že neki časa ubadam s tem pa mi ne uspe!? Če obstaja še kakšna druga možnost vas lepo prosim če mi jo posredujete.

whatson ::

to vprašanje lih NE spada v programiranje, ampak, ker sem dober človek ti bom vseeno odgovoril... :D :D

link 1

tukaj maš več načinov kako zaščitit stran z geslom...

:D

to maš pa kako zrihtat .htaccess file da bo zaščitil direktorij,... kar vse kopiram, da ti nebom pisal...


The steps to set up a password protected directory are this :

Telnet to your account
----------------------------

Change into the directory that you want to make password protected

Type : touch .htpasswd
----------------------------

Now you have a choice. What needs to be done is that you create a file, called ".htaccess" with the information below contained in it. You can either edit it online (using vi or ee), or you can upload it via FTP, but as an ASCII file. There are three parts of the following information that you need to change, but here is the skeleton :

AuthType basic
AuthName [realmname]
AuthUserFile /path/to/the/password/file/.htpasswd
require [list of users]

The bits you need to change are :

[realmname]
/path/to/the/password/file/.htpasswd
[list of users]


Replace [realmname] with the name of the Area that you are protecting. This is an arbitrary name, and I won't go too much into it at the moment. If you want more information on this, click on the link at the bottom of the page.
Replace /path/to/the/password/file/.htpasswd with, surprisingly, the path to the file ".htpasswd". (This is the one you created earlier with the command touch .htpasswd).
Replace [list of users] with one of the following :

a list of users, seperated by a single space, that are allowed to access the protected area, or...
the word valid-user - this means that anyone in the password file and the right password can get in.


------------------
The next thing that needs to be done is to actually add users to your password file (this is the file .htpasswd). To do this, from the telnet prompt and in the same directory as the .htpasswd file, type :

htpasswd .htpasswd [user]

Replacing the word "[user]" with the name of the user you would like to add. You will then be asked to type in the password of the user. If you want to change a users's password, just type the same thing as above, but replace "[user]" with the user whose password needs to be changed. htpasswd is a utility that comes with apache.

----------------------
That's it! Now, when you try to access the protected area of your web site, you will be asked for a username and password!
Čas včlanitve v Slo-Tech - 6. nov 2000 ob 20:39

poldi ::

Za to rec sem imam celo nekje en administracijski modul ki sem ga napisal v PHPju ...
drugace pa ce mas kej Linux Journal pri roki .... pred casom (pred cca pol leta) je bil .htaccess natancno opisan ... drugace sama stvar z htaccessom je cist apachejeva stvar , tako da do je omejen dostop SAMO PREKO WEBA ... ce pa to dela na tripodu & ostalih, to pa nevem ... ce imajo apache web server potem bi skoraj moralo delat ..drugace pa na kakem linux portalu oz. na apache.org poisci vse o htaccessu oz: v linux konzoli napisi "man htaccess" :P

tomi77 ::

Hvala vsem ,vendar sem rešil problem! Res da so me iz Tripoda vrgli dol, potem sem šel na F2S pa sem rešil vse moje probleme.


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

Apache - localhost JA, IP naslov NE

Oddelek: Omrežja in internet
186569 (6428) ManDriver
»

.htpasswd

Oddelek: Izdelava spletišč
91390 (1203) pizdarija1
»

irc...

Oddelek: Omrežja in internet
101558 (1306) MilkoSan
»

Kako nardit, da bi lahko samo z geslom prišel na neko stran???

Oddelek: Izdelava spletišč
262013 (1591) kunigas
»

.htacces

Oddelek: Programiranje
101390 (1263) darh

Več podobnih tem