Gossamer Forum
Home : Products : DBMan : Customization :

Using $ENV{'REMOTE_ADDR'}

Quote Reply
Using $ENV{'REMOTE_ADDR'}
I would like to customize DBMan so that to sign on (i.e. to be anyone but a default user with lowest level permissions) you need to be coming from ip x.x.x.x. Someone who just wants to search/view can come from anywhere. This must be possible using say
$ip = $ENV{'REMOTE_ADDR'};
and then something like
if ($ip eq "x.x.x.x") {
do something;
} else {
do something else;
}
but I can't figure out the best way / best place to put the code.
Can anyone help?
Thanks.
Tony.
Quote Reply
Re: [tbalazs] Using $ENV{'REMOTE_ADDR'} In reply to
I know there has been previous threads regarding the use of the IP address. Have you by any change searched the FAQ to see if you can find an answer or possible options?

Use the keyword search form, as I'm not sure exactly where those threads are located, perhaps under "Admin"

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/