irigsoft Posted January 5, 2018 Share Posted January 5, 2018 Hi, How to аllow external access only from user defined Ip list. Quote Link to comment Share on other sites More sharing options...
pedrisco Posted January 6, 2018 Share Posted January 6, 2018 Where AllowedIP is the function that manages the allowed ip's, i do something like this... procedure TUniServerModule.UniGUIServerModuleHTTPCommand(ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: Boolean);begin if not AllowedIP( ARequestInfo.RemoteIP ) then begin AResponseInfo.ContentText := '<h1>Access denied</h1>'; Handled := True; Exit; end; ... Quote Link to comment Share on other sites More sharing options...
irigsoft Posted January 6, 2018 Author Share Posted January 6, 2018 Thanks. I was thinking if there was a list like BlockedIpList Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.