Visualizzazione dei risultati da 1 a 8 su 8
  1. #1

    htpasswd che chiede la login solo a domini non riconosciuti

    Ho settato la protezione ad una webfolder con i due soliti file .htaccess e .htpasswed, ora però vorrei che, all'apertura della pagina dal browser, la login e la password venisse richiesta solo se l'ip NON è (ad esempio) 111.111.111.*

    Si può fare?


    Grazie anticipatamente per ogni vostro aiuto, ciao

  2. #2

    ?

    Ho detto qualcosa di assurdo?

  3. #3
    Scusate, ho cliccato su "nuovo" invece che rispondi... la domanda era...

    Ho settato la protezione ad una webfolder con i due soliti file .htaccess e .htpasswed, ora però vorrei che, all'apertura della pagina dal browser, la login e la password venisse richiesta solo se l'ip NON è (ad esempio) 111.111.111.*

    Si può fare?


    Grazie anticipatamente per ogni vostro aiuto, ciao

  4. #4
    Beh, se vuoi puoi chiuderlo, la domanda l'avevo posta su... "htpasswd che chiede la login solo a domini non riconosciuti"

    Uno dei 2 in effetti può essere chiuso, speravo in uuna risposta, per quello ho chiesto se la mia domanda aveva un senso oppure no, sono nuovo a "linux" per quello forse potrei dire qualche sciocchezza...

  5. #5
    Utente di HTML.it
    Registrato dal
    Apr 2001
    Messaggi
    913
    eccomiiii...fiu...prima del lock

  6. #6
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    2,894
    Satisfy

    The Satisfy directive can be used to specify that several criteria may be considered when trying to decide if a particular user will be granted admission. Satisfy can take as an argument one of two options - all or any. By default, it is assumed that the value is all. This means that if several criteria are specified, then all of them must be met in order for someone to get in. However, if set to any, then several criteria may be specified, but if the user satisfies any of these, then they will be granted entrance.

    A very good example of this is using access control to assure that, although a resource is password protected from outside your network, all hosts inside the network will be given free access to the resource. This would be accomplished by using the Satisfy directive, as shown below.

    <Directory /usr/local/apache/htdocs/sekrit>
    AuthType Basic
    AuthName intranet
    AuthUserFile /www/passwd/users
    AuthGroupFile /www/passwd/groups
    Require group customers
    Order allow,deny
    Allow from internal.com
    Satisfy any
    </Directory>

    In this scenario, users will be let in if they either have a password, or if they are in the internal network.

  7. #7
    Grazie mill1

  8. #8
    Utente di HTML.it L'avatar di blukarma
    Registrato dal
    Aug 2002
    Messaggi
    1,186
    "viva la mucca, che dio la beneducca"
    (Diego Abatantuono - Eccezziunale... Veramente - 1982)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.