chpetros Δημοσ. 15 Σεπτεμβρίου 2002 Δημοσ. 15 Σεπτεμβρίου 2002 Υπάρχει κανένα πρόγραμμα ή τρόπος για να βάζω κωδικό κατά την είσοδο άλλων στη σελίδα μου;
daniel's_saving_grace Δημοσ. 15 Σεπτεμβρίου 2002 Δημοσ. 15 Σεπτεμβρίου 2002 ******************************************** To restrict access to a directory or file Place all the files that you want to protect in a separate directory, such as "private". Create two .txt files. (A text editor such as Notepad is ideal for the task.) Cut and paste the following text into the first file (named .htaccess): AuthName restricted text AuthType Basic AuthUserFile the-path-to-your-directory/.htpasswd require valid-user The text must appear exactly as shown, with no extra spaces or other errors. You can, however, change "restricted text" in line one to text you would like to appear in the log-in box that prompts the user. You also need to change the text "the-path-to-your-directory" in line three to the name of the directory where you've placed the files you want to protect. When you've finished editing this file, save it with the name ".htaccess." Note: Notepad will automatically save it as a .txt file. The second file (.htpasswd) will contain the user names and passwords of all the users you will be granting access to. They will appear in the following format: username1:password1 username2:password2 Again, the text must appear exactly as shown with no extra spaces or other errors. Simply change "username1" to the authorized user's name and "password1" to the authorized user's encrypted password. When you've finished editing this file, save it with the name ".htpasswd". ******************************************** Αυτά ισχύουν στον δικό μου server...
Προτεινόμενες αναρτήσεις
Αρχειοθετημένο
Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.