GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   A simple .htaccess question... (https://gfy.com/showthread.php?t=562308)

CurrentlySober 01-11-2006 05:09 AM

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

who 01-11-2006 05:11 AM

Hi.

Allow from 10.1.2.3

studiocritic 01-11-2006 05:11 AM

http://httpd.apache.org

selena 01-11-2006 05:13 AM

Try

<Limit GET POST>
order deny,allow
deny from all
allow from xxx.xxx.xxx.
</Limit>

CurrentlySober 01-11-2006 05:14 AM

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

who 01-11-2006 05:15 AM

Quote:

Originally Posted by ThatGuyInTheCorner
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

At the start. put this if you just want to control the www. directory:

<Directory /www>
Order Deny,Allow
Allow from 'p.ip.ip.ip'
</Directory>

CurrentlySober 01-11-2006 05:17 AM

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

CurrentlySober 01-11-2006 05:18 AM

Hi Who,
Its the members area, as in a standard ccBill setup...

emthree 01-11-2006 05:51 AM

deny from all, will deny access to all.
What you want to do is allow ip in the folder you want to keep protected.

sinnerscorner 01-11-2006 06:50 AM

Quote:

Originally Posted by ThatGuyInTheCorner
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


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