I need proper .htaccess file format to:
Allow access to directory for specified IPs. Allow to www/protect/.
Plus allow User Name and Password (htpasswd) access to same directory.
htpasswd in root.
User with allowed IP must NOT see authentication page.
User without allowed IP MUST see...
Thanks you all for the help so far!
The IPs are static, they belong to a bunch of Aussie research libraries, and were provided to me as static IPs.
Under what conditions could a "static IP", say 100.100.100.1 be seen by my host as something else like 100.100.100.2?
Dadpups (PI, '64)
Here is the .htaccess file
AuthUserFile /home/xxxxxx/.htpasswd
AuthGroupFile /dev/null
AuthName "Journal of Environmental Hydrology"
AuthType Basic
<limit GET>
satisfy any
order deny,allow
deny from all
allow from 63.76.22.2
allow from 130.116.16.
allow from 130.116.17.
allow from...
i have about 1000 user name password combos that i need to convert to apache passwords. i prefer not to do it one by one. is there a script that will take a flat file like this
dog:cat
big:little
smart:dumb
and convert in one fell swoop to
dog:mnaofjapdae (or whatever the conversion is...)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.