![]() |
A simple .htaccess question...
My file currently reads:
AuthUserFile /dev/null AuthGroupFile /dev/null AuthName RESTRICTED AuthType Basic <Limit GET POST> require valid-user </Limit> What I want to do, is too add the line that will allow all traffic from a specifed IP... Thing is though, I must be getting old, Cause I cant for the life of me remember the cortrect syntax... TIA TGITC |
Hi.
Allow from 10.1.2.3 |
|
Try
<Limit GET POST> order deny,allow deny from all allow from xxx.xxx.xxx. </Limit> |
OK so 'allow from 'p.ip.ip.ip'
But at what point in the file ? In other words before or after which line? TIA TGITC |
Quote:
<Directory /www> Order Deny,Allow Allow from 'p.ip.ip.ip' </Directory> |
OK Thanks...
Just one final Q. The addition of <Limit GET POST> order deny,allow deny from all allow from xxx.xxx.xxx. </Limit> Will not affect a registered subscribers ability to enter ? TIA |
Hi Who,
Its the members area, as in a standard ccBill setup... |
deny from all, will deny access to all.
What you want to do is allow ip in the folder you want to keep protected. |
Quote:
You can also try Satisfy Any AuthType Basic AuthName "Members Area" AuthUserFile /pathonyourservertothe.htpasswdfile AuthGroupFile /dev/null <Limit GET POST> require valid-user order deny,allow deny from all allow from ipnumber </Limit> I had this working both useraccess and ip access worked. |
All times are GMT -7. The time now is 04:27 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123