Skip to content

Scripts designed to block high latency Apex Legend servers (and maybe other games too)

License

Notifications You must be signed in to change notification settings

16x16/apex-blocker

Repository files navigation

Contributors Forks Stargazers Issues MIT License

apex-blocker

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
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

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.

⚠️Warning: Apex Legends doesn't check availability of the servers when queuing for a game, so if your party members don't have the same servers blocked - your party members will get into the match, but you will get disconnected. You don't get a cooldown if that happens.

(back to top)

Getting Started

Prerequisites

  • Windows 10 or higher (Windows 7/8 is not tested, but might work)
  • Python 3.7+

Installation

  1. Get latest Python release here. Don't forget to check "Add to PATH" when installing.
  2. Clone the repo or download the zip and open cmd in the repo folder
  3. Install dependencies for the scripts
    py -3 -m pip install -r requirements.txt

(back to top)

Usage

⚠️ All script should be run in a cmd with administrator privileges

  1. 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.

  2. 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"

  3. unblock.py - unblocks all IPs that were blocked by "block.py". Takes no arguments.
    py -3 unblock.py

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Pavel Levchuk - lev4ukpavel2@gmail.com

Project Link: https://github.com/16x16/apex-blocker

(back to top)

About

Scripts designed to block high latency Apex Legend servers (and maybe other games too)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages