Skip to content

Long18/shadowrocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Locket App Icon

Locket Gold


Important

This repository is for educational, personal DNS configuration, and privacy filtering purposes only. Do not use this project to bypass payment, app entitlement, or subscription verification.


πŸ“– Table of Contents


⚑ Quick Start β€” Shadowrocket

Step 1: Import Config

Copy this URL and import into Shadowrocket:

https://raw.githubusercontent.com/Long18/shadowrocket/main/Locket.conf

Or use the standalone module:

https://raw.githubusercontent.com/Long18/shadowrocket/main/modules/Locket.sgmodule

Step 2: Enable MITM

  1. Open Shadowrocket β†’ tap the config file β“˜
  2. Go to HTTPS Decryption
  3. Tap Generate New CA Certificate
  4. Tap Install Certificate
  5. On iPhone: Settings β†’ General β†’ About β†’ Certificate Trust Settings
  6. Enable trust for the Shadowrocket certificate

Step 3: Verify

  1. Make sure the config is selected and Shadowrocket is connected
  2. Open the Locket app
  3. Check that Gold features are active

If not working: force-close Locket β†’ reconnect Shadowrocket β†’ reopen Locket.


🌐 Quick Start β€” NextDNS

Step 1: Create NextDNS Account

  1. Go to https://nextdns.io
  2. Sign up for a free account
  3. Open Dashboard and copy your Configuration ID (e.g., abc123)

Step 2: Customize the Template

Open PersonalNextDNS.mobileconfig and replace placeholders:

Placeholder Replace with Example
{{NEXTDNS_ID}} Your Configuration ID abc123
{{DEVICE_NAME}} Device name (shown on NextDNS dashboard) iPhone-16-Pro
{{PROFILE_DISPLAY_NAME}} Profile name on iPhone My Personal DNS
{{PROFILE_OWNER}} Your name (lowercase) william
{{DNS_PAYLOAD_UUID}} Run uuidgen in terminal A1B2C3D4-...
{{MAIN_PAYLOAD_UUID}} Run uuidgen again E5F6G7H8-...

Step 3: Install on iPhone

  1. AirDrop or email the .mobileconfig file to your iPhone
  2. Open the file β†’ tap Allow
  3. Go to Settings β†’ General β†’ VPN & Device Management
  4. Select the profile β†’ tap Install

Step 4: Verify

  1. Open NextDNS Dashboard β†’ Logs
  2. Browse Safari on iPhone
  3. Confirm DNS queries appear with your device name

If no logs: check that no other VPN/DNS app is active, and restart iPhone.


πŸ”„ How It Works

Shadowrocket Flow

flowchart TD
    A[Import Locket.conf into Shadowrocket] --> B[Enable MITM & install CA Certificate]
    B --> C[Trust certificate in iOS Settings]
    C --> D[Shadowrocket intercepts HTTPS traffic]
    D --> E[deleteHeader.js removes ETag cache header]
    E --> F[Locket.js modifies RevenueCat API response]
    F --> G[App receives spoofed entitlement data]
    G --> H[Locket Gold features unlocked]

    D --> I[hostsVN RULE-SET loaded]
    I --> J[Vietnamese ad domains blocked via REJECT]
Loading

NextDNS Flow

flowchart TD
    A[Create NextDNS account] --> B[Copy Configuration ID]
    B --> C[Replace placeholders in mobileconfig template]
    C --> D[Install .mobileconfig on iPhone]
    D --> E[iOS routes all DNS queries via HTTPS]
    E --> F[NextDNS resolves DNS with filtering]
    F --> G[Ads & trackers blocked via Denylist]
    F --> H[DNS logs visible on Dashboard]
    H --> I[Monitor & adjust Allowlist/Denylist]
Loading

πŸ“ Project Structure

β”œβ”€β”€ Locket.conf                    # Shadowrocket config (Locket + hostsVN)
β”œβ”€β”€ PersonalNextDNS.mobileconfig   # NextDNS DNS-over-HTTPS template
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ nextdns-setup.md           # Detailed tutorial (Vietnamese)
β”‚   └── nextdns-setup_en.md        # Detailed tutorial (English)
β”œβ”€β”€ js/
β”‚   β”œβ”€β”€ Locket.js                  # RevenueCat response modifier
β”‚   └── deleteHeader.js            # ETag header removal
└── modules/
    └── Locket.sgmodule            # Standalone Shadowrocket module

πŸ“š Documentation

Language Link
πŸ‡»πŸ‡³ TiαΊΏng Việt HΖ°α»›ng dαΊ«n cΓ i NextDNS cΓ‘ nhΓ’n
πŸ‡¬πŸ‡§ English Personal NextDNS Setup Guide

πŸ™ Credit

Repository Long18/shadowrocket
Maintainer William / Long18
hostsVN bigdargon/hostsVN β€” MIT License
License MIT

If you share, fork, or repost this project, please keep the source credit.

Β 

Copyright Β© 2026-present William

About

Shadowrocket config for Locket Gold unlock, hostsVN ad blocking, and personal NextDNS DNS-over-HTTPS setup on iOS.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors