Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public BlockedResult isIpBlocked(String ip) {
// Check for allowed ip addresses (i.e. only one country is allowed to visit the site)
// Always allow access from private IP addresses (those include local IP addresses)
if (!isPrivateIp(ip) && !firewallLists.matchesAllowedIps(ip)) {
return new BlockedResult(true, "not in allowlist");
return new BlockedResult(true, "not allowed");
}

// Check for monitored IP addresses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public BlockedOutboundException(String msg) {
}

public static BlockedOutboundException get() {
String defaultMsg = generateDefaultMessage("an outbound request");
String defaultMsg = generateDefaultMessage("an outbound connection");
return new BlockedOutboundException(defaultMsg);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void testReport_ipNotAllowedUsingLists() {
contextObject.setIp("4.4.4.4");
response = WebRequestCollector.report(contextObject);
assertNotNull(response);
assertEquals("Your IP address is blocked. Reason: not in allowlist (Your IP: 4.4.4.4)", response.msg());
assertEquals("Your IP address is blocked. Reason: not allowed (Your IP: 4.4.4.4)", response.msg());
assertEquals(403, response.status());
}

Expand Down
Loading