Jump to content

Recommended Posts

Posted

Hi Farshad.

Can you add in the next version or future, list of allowed IP, including with the ability to specify a range of IP addresses.

Thank you.

 

  • 4 months later...
Posted
HI All!

 

Do you think, this approach is correct?

 




procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject);
begin
  if RemoteAddress <> '111.111.111.111' then begin
    UniSession.Terminate(RemoteAddress + ' is not allowed...');
  end;
end;



 

Sincerely ...

  • 1 month later...
Posted

Hi Farshad.

 

Can you add in the next version or future, list of allowed IP, including with the ability to specify a range of IP addresses.

 

Thank you.

i need this too, only specified ip could access it

Posted

 

HI All!
 
Do you think, this approach is correct?
 
procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject);
begin
  if RemoteAddress <> '111.111.111.111' then begin
    UniSession.Terminate(RemoteAddress + ' is not allowed...');
  end;
end;
 
Sincerely ...

 

nice info,

for dynamic IP maybe we can use inifiles

myini := TInifiles.Create('config.ini');

ip := myini.ReadString('general', 'validip', '');

myini.free;

 

but new feature request is possible

×
×
  • Create New...