Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).
How to display all currently banned IP addresses for Robo-FTP Server
The following PowerShell script will display a list of all currently whitelisted or blacklisted IP addresses, along with whether or not the whitelist or blacklist functionality is in effect.
$robox = New-Object -COMObject "RoboFTPServer.RSGlobalConfig"
$sftp = $robox.Servers[2]
$behavior = $sftp.RestrictHostsBehavior
if ($behavior -eq 2) {
echo "The following IP addresses are blacklisted:"
} elseif ($behavior -eq 1) {
echo "The following IP addresses are whitelisted:"
} else {
echo "Server access is currently unrestricted."
exit 0
}
foreach ($h in $sftp.RestrictedHosts) {
echo $h
}
Article last updated: 2021-05-13
Tags: banned ip address addresses server whitelist blacklist powershell