Grand Theft Auto V Legacy

Grand Theft Auto V Legacy

107 ratings
Block countries with windows firewall
By Khundian
Tired of players from certain countries in your games, talking in a language you cannot read. Block them with windows firewall from accessing your server or games.
   
Award
Favorite
Favorited
Unfavorite
1. Download PowerShell Script
Download[bitbucket.org]
2. Extract PowerShell Script
Extract "country-ip-blocklist.zip" to a new folder, for example c:\country-ip-blocklist
3. Create or update the *.zone.txt files
Go to http://www.ipdeny.com/ipblocks/ and click the “aggregated zone file” for each country you wish to block, copy the IP list and save it to a text file with this format: China -> china.zone.txt and copy the text file to the "country-ip-blocklist" folder we created earlier.
4. Run PowerShell as administrator
Search your computer for "powershell.exe", rightclick it and run as administrator
5. Navigate PowerShell to country-ip-blocklist folder
Type in PowerShell window (without the quotes) "cd c:\country-ip-blocklist"
6. Change PowerShell scripts policy to make the firewall rules
Type without quotes “PowerShell.exe -ExecutionPolicy Bypass”
This will set the scripts Policy of PowerShell so that it can make the Windows Firewall Rules.
7. Add the contents of *.zone.txt files to windows firewall
Type in PowerShell window without the quotes ".\Import-Firewall-Blocklist.ps1 -inputfile china.zone.txt"
And repeat for every zone you want to block, you can press the up arrow on your keyboard to bring up the last entered line in PowerShell and edit the command like that for ease of use.
8. Change PowerShell scripts policy back to default
Type without quotes “PowerShell.exe -ExecutionPolicy Restricted”
9. Remove *.zone.txt contents from windows firewall
If you want to enable access again for a country, type in the PowerShell window without the quotes ".\Import-Firewall-Blocklist.ps1 -inputfile china.zone.txt -deleteonly"
Repeat for all the zones you want to unblock.
10. List of countries in the country-ip-blocklist.zip file (updated 12 sep 2017)
bulgaria.zone.txt
china.zone.txt
kazakh.zone.txt
kyrzygh.zone.txt
macedonian.zone.txt
montenegro.zone.txt
russia.zone.txt
serbia.zone.txt
southkorea.zone.txt
tajikistan.zone.txt
turkmenistan.zone.txt
ukraine.zone.txt
uzbekistan.zone.txt
48 Comments
elpx Oct 20, 2022 @ 5:11am 
hey, can you accept my friend request pls? It's about trading I want to buy your completely overkill pack
Console Mar 16, 2022 @ 10:34am 
Thx for ban ukraine!
Kate Hanami Mar 15, 2022 @ 10:21pm 
link removed, please update
Console Apr 26, 2020 @ 4:12pm 
Thx for blocking ukraine!
Cpt. Blyatman Jul 21, 2019 @ 1:18am 
Hi where do i get IP ranges for South America. Brazil and mexico
frried Jun 11, 2019 @ 4:43am 
@Parkrover
@TKY_OMAR
It does work
Parkrover Apr 11, 2019 @ 9:18pm 
Still works? x2
TKY_OMAR Mar 1, 2019 @ 6:54am 
Still works ?
Coffee Addicted☕ Feb 26, 2018 @ 3:03pm 
i blocked countries with high ping : japan-china-thailand-korea-brazil
Vazkulator Dec 30, 2017 @ 12:42pm 
how do i block indians and muslim countries?