A collection of scripts designed to block high latency Apex Legend servers (and maybe other game servers too).
Report Bug
·
Request Feature
Table of Contents
This is a collection of scripts designed to block Apex Legends servers (or Multiplay servers in general). It's aimed at people that frequently encounter high ping servers in Apex Legends. Those scripts filter the list of servers by your specified ping threshold, and block high ping servers using Windows Firewall.
The list of server is planned to be updates regularly, and at the moment, not all Apex Servers are in that list.
- Windows 10 or higher (Windows 7/8 is not tested, but might work)
- Python 3.7+
- Get latest Python release here. Don't forget to check "Add to PATH" when installing.
- Clone the repo or download the zip and open cmd in the repo folder
- Install dependencies for the scripts
py -3 -m pip install -r requirements.txt
-
filter.py - filters Apex Legends servers by ping.
py -3 filter.py <latency threshold>
For example,py -3 filter.py 200
will write all servers with ping more than 200ms into "high_latency.txt"
Please note, that running this script could take a few minutes to run, be patient and try not to stress the network too much while it's running. -
block.py - blocks outgoing connection to IPs in a specified file.
⚠️ Warning: before running block.py, you need to close Apex Legends, for some reason adding firewall rules doesn't work when Apex Legends is running, possibly because of the anticheat.
py -3 block.py <IPs file>
For example,py -3 block.py high_latency.txt
will block all servers in file "high_latency.txt" -
unblock.py - unblocks all IPs that were blocked by "block.py". Takes no arguments.
py -3 unblock.py
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Pavel Levchuk - lev4ukpavel2@gmail.com
Project Link: https://github.com/16x16/apex-blocker