diff --git a/scripts/pi-hole/php/savesettings.php b/scripts/pi-hole/php/savesettings.php
index a85b65ce..7b67ffed 100644
--- a/scripts/pi-hole/php/savesettings.php
+++ b/scripts/pi-hole/php/savesettings.php
@@ -320,9 +320,9 @@ function readAdlists()
$first = true;
foreach($clients as $client)
{
- if(!validIP($domain))
+ if(!validDomainWildcard($client) && !validIP($client))
{
- $error .= "Top Clients entry ".htmlspecialchars($client)." is invalid (use only IP addresses)!
";
+ $error .= "Top Clients entry ".htmlspecialchars($client)." is invalid (use only host names and IP addresses)!
";
}
if(!$first)
{