zapret-discord-youtube

repository·main·Indexed 10 days ago

https://github.com/flowseal/zapret-discord-youtube

A Windows-optimized distribution of the zapret tool designed to bypass censorship for YouTube and Discord. It utilizes WinDivert to intercept and modify network traffic to circumvent Deep Packet Inspection (DPI). The package includes scripts like general.bat for testing bypass strategies and service.bat for managing the tool as a background Windows service, configuring IPSet filters, and updating hosts files.

Tokens
2.1K
Snippets
4
Records
15
Agent score
49%

What's inside zapret-discord-youtube

  1. Perform a full reinstallation or update

    main

    To completely reinstall or update the project:

    1. Save any custom resources or data you have added.
    2. Restart your device.
    3. Run service.bat and select Remove Services.
    4. Run service.bat -> Run Diagnostics (fix any errors found, then press Y at the end).
    5. Delete the existing project folder.
    6. Download the latest version from the Releases page.
    7. Important: Right-click the downloaded archive -> Properties -> Check Unblock (if present) -> Apply -> OK.
    8. Extract the archive to a new folder in the root of your drive (ensure the path contains no spaces or special characters).
    9. Test various general scripts. If one works, set it to auto-start via service.bat -> Install Service.
  2. Configure Secure DNS

    main

    Before using the tool, you must enable Secure DNS (DNS over HTTPS) to ensure proper functionality. Depending on your browser or OS, follow these steps:

    • Chrome: Enable "Use secure DNS" and select a provider (do not use "Default provider").
    • Firefox: Set "DNS over HTTPS" to "Increased Protection" (or "Personal"), then manually enter a provider URL. Use https://dns.google/dns-query if Cloudflare is blocked.
    • Windows 11: Enable Secure DNS directly in the OS settings.
    • Keenetic Routers: Enable the "Transit requests" (Транзит запросов) option in router settings to avoid conflicts with computer-side Secure DNS.
  3. Use general.bat to test strategies

    main

    Use the general.bat script to run bypass strategies manually. This is primarily used to test which strategy works for your specific network environment. Since effectiveness depends on many factors, you should try different strategies (such as ALT, FAKE, etc.) until you find one that works for you.

    # Run manually to test different strategies
    ./general.bat
  4. Install and Setup zapret-discord-youtube

    main

    Follow these steps to install the tool:

    1. Enable Secure DNS (see Configure Secure DNS).
    2. Download: Get the latest .zip or .rar archive from the releases page.
    3. Unblock: Right-click the downloaded archive, go to Properties, and check the Unblock (Разблокировать) box. (Note: This step is unnecessary if using 7-Zip or PeaZip).
    4. Extract: Unpack the archive to a path that does not contain Cyrillic or special characters.
    5. Run: Execute the desired script from the extracted folder.
  5. Add custom domains and IP addresses to the bypass list

    main

    You can extend the list of bypassed resources by editing the following files. Note that *-user.txt files are automatically created upon the first run of zapret or service.bat:

    • list-general-user.txt: Add domains here (subdomains are included automatically).
    • list-exclude-user.txt: Add domains to exclude from filtering.
    • ipset-all.txt: Add specific IP addresses and subnets.
    • ipset-exclude-user.txt: Add IP addresses and subnets to exclude from filtering.
  6. Troubleshoot: Bypass stops working

    main

    Bypass strategies may stop working over time due to detection. If your current strategy fails:

    • Run service.bat -> Run Diagnostics to check for errors.
    • Ensure the target resource is in your domain or IP lists.
    • Try alternative strategies (e.g., ALT, FAKE, etc.).
    • If all else fails, perform a full reinstallation.
    • For technical details on strategy parameters, refer to the zapret documentation.
  7. Troubleshoot: Telegram web or Discord voice connection issues

    main

    If Telegram web fails or Discord stays stuck on "connecting" to voice chat, update your hosts file:

    1. Run service.bat and select Update hosts file.
    2. If prompted, copy the text from the opened Notepad.
    3. Open your system hosts file with a text editor running as Administrator.
    4. Append the copied text to the end of the file (or replace existing entries).
    5. Save the file and verify the connection.
  8. Troubleshoot: WinDivert driver remains in services after deletion

    main

    If service.bat fails to remove the WinDivert service, manually remove it using the following steps in a Command Prompt:

    1. Find the service name:
      driverquery | find "Divert"
    2. Stop and delete the service (replace `<service_name>` with the name found in step 1):
       ```cmd
       sc stop <service_name>
       sc delete <service_name>
    driverquery | find "Divert"
    sc stop <service_name>
    sc delete <service_name>
  9. Handle WinDivert antivirus detections

    main

    The WinDivert tool, required for traffic interception, may be flagged by antivirus software as a high-risk tool or PUA (Potentially Unwanted Application).

    If you see detections like WinDivert or Not-a-virus:RiskTool.Multi.WinDivert:

    1. Add the folder containing the bypass to your antivirus exclusions.
    2. Alternatively, disable PUA detection (e.g., in Kaspersky, disable "Detect legal applications that attackers often use to cause harm").

    Note: All binaries in the bin folder are sourced from zapret-win-bundle/zapret-winws and zapret/releases. You can verify them using checksums.

  10. Troubleshoot: YouTube or Discord not working

    main

    If YouTube or Discord is inaccessible:

    For YouTube:

    • Ensure Secure DNS is configured.
    • Disable ad blockers (YouTube may block access due to them).
    • Try different strategies.

    For Discord:

    • Ensure Secure DNS is configured.
    • Run service.bat -> Run Diagnostics and use the option to clear Discord cache.
    • Test Discord in a web browser (https://discord.com/app). If it works in the browser but not the app, the cache clearing was likely necessary.