Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by AskApache: http://wiki.apache.org/httpd/Recipes/PasswordBasicAuth The comment on the change is: Added conditional access recipe using "Satisfy" for webmasters ------------------------------------------------------------------------------ Remember to restart Apache after making any changes to httpd.conf or your distro's main Apache config file or your virtual host config file. Using either recipe, you can now go to http://localhost/protected and be prompted by the browser to enter your credentials. If you enter correct credentials you will be granted access to '''protected'''. If you don't enter correct credentials, you will be continually prompted to enter credentials until you enter correct credentials or click the '''Cancel''' button. + [[BR]] + ==== Conditional passwordless access for webmasters ==== + + The following recipe from [http://www.askapache.com/2006/htaccess/htaccesselite-ultimate-htaccess-article.html AskApache] uses your incorporates the "Satisfy Any", "Allow", and "Order" directives to allow google, CSS and XHTML validation via w3.org, and the web-developer to access the site without being prompted for a password. Everyone else is prompted for a password. This is especially useful for webmasters while working on a site. + + {{{AuthName "AskApache.com Administration" + AuthUserFile /home/askapache.com/.htpasswd + AuthType basic + Require valid-user + Order deny,allow + Deny from all + Allow from 24.205.23.222 + Allow from w3.org + Allow from htmlhelp.com + Allow from googlebot.com + Allow from google.com + Allow from google-analytics.com + Satisfy Any + }}} + + For more complete information on the Apache directives used, see the [http://httpd.apache.org/docs/ Apache Docs].
