Custom Rules for ShadowSocks

Notes on editing user rules in ShadowSocks, plus a quick reference to rule syntax and a brief BandwagonHost intro.

Oct 7, 2016 · 1 min read · 114 Words · -Views -Comments · Software & Tools
Productivity Hardware 🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

Click the ShadowSocks menu → Edit User Rules. Use the format below:

! Put user rules line by line in this file.
! See https://adblockplus.org/en/filter-cheatsheet
||amazonaws.com
||atom.io

Save and you’re done.

Rule syntax overview

Wildcards are supported. E.g. *.example.com/* can be written as .example.com/
Regular expressions start and end with \. Example: \[\w]+:\/\/example.com\
Exception rules start with @@. Example: @@*.example.com/* bypasses the proxy.
| anchors the beginning or end. Example: |http://example.com or example.com|
||example.com matches http/https/ftp etc. (prefix match).
Comments start with !.
^ denotes a separator (any char except letters, digits, _ - . %).

BandwagonHost Overview BandwagonHost (IT7 Networks, USA) offers budget OVZ VPS plans. Reliable and inexpensive—good value for money. https://bandwagonhost.com/

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover