Hello,
I see TUniServerModule has "BlockedIPList" Property but i don't know how to set value to filter specific ip range.
ex. if i want to allow only IP: 111.222.*.* (ip begin with 111.222) to access my site
how should i have to set in BlockedIPList property ?
Thank you
Hi;
You can do it with code in ServerModule Create event
Add this
procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject);
var
IPThird,IPFourth: Integer;
IPThirdString, IPFourthString,IP: string;
begin
for IPThird := 0 to 255 do
begin
IPThirdString := CheckStrLength(inttostr(IPThird));
for IPFourth := 0 to 255 do
begin
IPFourthString := CheckStrLength(inttostr(IPFourth));
IP := '111.222.'+IPThirdString+'.'+IPFourthString;
BlockedIPL