Clean up your community server list from fake servers

Nikooo777

when life gives me lemons, I rtv
Staff member
Head Admin
Administrator
EliteHunterz Clan Member
Donator
25 Mar 2010
5'639
1'339
113
30
Switzerland
elite-hunterz.com
Does your server list look like this?
1695925184800.png


It's because Valve doesn't give a fuck about communities anymore.
If you want to clean it up so that it's usable again to find servers you may follow these instructions for windows:

Steps:
open the PowerShell as administrator
paste this in:
Bash:
# List of IP addresses to block
$IPList = @('89.111.131.172', '91.219.149.6', '188.127.241.129','212.57.127.30','194.87.37.193','193.107.113.65','185.84.162.112','185.251.38.220','185.251.38.220','91.219.60.42','193.233.164.16','91.193.180.118','193.233.80.224')

# Loop through each IP and block it
foreach ($IP in $IPList) {
    Write-Host "Blocking IP: $IP"

    # Block inbound traffic
    New-NetFirewallRule -DisplayName "Block IP Inbound - $IP" -Direction Inbound -RemoteAddress $IP -Action Block

    # Block outbound traffic
    New-NetFirewallRule -DisplayName "Block IP Outbound - $IP" -Direction Outbound -RemoteAddress $IP -Action Block
}

Write-Host "All IPs have been blocked."

press enter

result:
2023-09-28_20-26-08-055172638.png
 
Last edited:

Soup^

Well-Known Member
Gameserver Admin
EliteHunterz Clan Member
Donator
15 May 2022
545
379
63
Greece
You are the best Nikoo
 

Sarevok

Well-Known Member
Gameserver Admin
Donator
24 Sep 2023
63
19
8
30
Spain
Used again to add a new ip(185.251.38.220):


Code:
# List of IP addresses to block
$IPList = @('89.111.131.172', '91.219.149.6', '188.127.241.129','212.57.127.30','194.87.37.193','193.107.113.65','185.84.162.112','185.251.38.220')

# Loop through each IP and block it
foreach ($IP in $IPList) {
    Write-Host "Blocking IP: $IP"

    # Block inbound traffic
    New-NetFirewallRule -DisplayName "Block IP Inbound - $IP" -Direction Inbound -RemoteAddress $IP -Action Block

    # Block outbound traffic
    New-NetFirewallRule -DisplayName "Block IP Outbound - $IP" -Direction Outbound -RemoteAddress $IP -Action Block
}

Write-Host "All IPs have been blocked."
 

Sarevok

Well-Known Member
Gameserver Admin
Donator
24 Sep 2023
63
19
8
30
Spain
You can't block all of them... there are many community server which has different IP Adresses.
View attachment 18130
I've checked that and the only thing that changes is the port, so i update again the script with the new ip:

Before:
1.jpg

After:
2.jpg

Code:
# List of IP addresses to block
$IPList = @('89.111.131.172', '91.219.149.6', '188.127.241.129','212.57.127.30','194.87.37.193','193.107.113.65','185.84.162.112','185.251.38.220','185.251.38.220')

# Loop through each IP and block it
foreach ($IP in $IPList) {
    Write-Host "Blocking IP: $IP"

    # Block inbound traffic
    New-NetFirewallRule -DisplayName "Block IP Inbound - $IP" -Direction Inbound -RemoteAddress $IP -Action Block

    # Block outbound traffic
    New-NetFirewallRule -DisplayName "Block IP Outbound - $IP" -Direction Outbound -RemoteAddress $IP -Action Block
}

Write-Host "All IPs have been blocked."
 

Nikooo777

when life gives me lemons, I rtv
Staff member
Head Admin
Administrator
EliteHunterz Clan Member
Donator
25 Mar 2010
5'639
1'339
113
30
Switzerland
elite-hunterz.com
thanks updated. there's probably more, I keep updating them as they come up
 
  • Like
Reactions: Sarevok

SyntX

Well-Known Member
18 Jun 2021
132
186
43
19
Nepal
I just noticed that i can't reply on other threads... and i can't react on other people posts. Got this: Security error occurred. Please press back, refresh the page, and try again.

1697544401310.png

Anyway those IPs are blocked but there are still 200+ IPs that needs to be blocked for every normal player.
 
  • Haha
Reactions: Woozu

Sarevok

Well-Known Member
Gameserver Admin
Donator
24 Sep 2023
63
19
8
30
Spain
Update: added 2 ips more ('91.219.60.42','193.233.164.16')
Sin título.jpg

Bash:
# List of IP addresses to block
$IPList = @('89.111.131.172', '91.219.149.6', '188.127.241.129','212.57.127.30','194.87.37.193','193.107.113.65','185.84.162.112','185.251.38.220','185.251.38.220','91.219.60.42','193.233.164.16')

# Loop through each IP and block it
foreach ($IP in $IPList) {
    Write-Host "Blocking IP: $IP"

    # Block inbound traffic
    New-NetFirewallRule -DisplayName "Block IP Inbound - $IP" -Direction Inbound -RemoteAddress $IP -Action Block

    # Block outbound traffic
    New-NetFirewallRule -DisplayName "Block IP Outbound - $IP" -Direction Outbound -RemoteAddress $IP -Action Block
}

Write-Host "All IPs have been blocked."
 

Sarevok

Well-Known Member
Gameserver Admin
Donator
24 Sep 2023
63
19
8
30
Spain
Update with new ip: 91.193.180.118
Bash:
# List of IP addresses to block
$IPList = @('89.111.131.172', '91.219.149.6', '188.127.241.129','212.57.127.30','194.87.37.193','193.107.113.65','185.84.162.112','185.251.38.220','185.251.38.220','91.219.60.42','193.233.164.16','91.193.180.118')

# Loop through each IP and block it
foreach ($IP in $IPList) {
    Write-Host "Blocking IP: $IP"

    # Block inbound traffic
    New-NetFirewallRule -DisplayName "Block IP Inbound - $IP" -Direction Inbound -RemoteAddress $IP -Action Block

    # Block outbound traffic
    New-NetFirewallRule -DisplayName "Block IP Outbound - $IP" -Direction Outbound -RemoteAddress $IP -Action Block
}

Write-Host "All IPs have been blocked."
 

Sarevok

Well-Known Member
Gameserver Admin
Donator
24 Sep 2023
63
19
8
30
Spain
Update with a new ip: 193.233.80.224

Bash:
# List of IP addresses to block
$IPList = @('89.111.131.172', '91.219.149.6', '188.127.241.129','212.57.127.30','194.87.37.193','193.107.113.65','185.84.162.112','185.251.38.220','185.251.38.220','91.219.60.42','193.233.164.16','91.193.180.118','193.233.80.224')

# Loop through each IP and block it
foreach ($IP in $IPList) {
    Write-Host "Blocking IP: $IP"

    # Block inbound traffic
    New-NetFirewallRule -DisplayName "Block IP Inbound - $IP" -Direction Inbound -RemoteAddress $IP -Action Block

    # Block outbound traffic
    New-NetFirewallRule -DisplayName "Block IP Outbound - $IP" -Direction Outbound -RemoteAddress $IP -Action Block
}

Write-Host "All IPs have been blocked."