Script Mode

Uses script logic for advanced routing decisions and is intended for users who understand the profile behavior.

Script

What Script Mode means

Script Mode uses custom logic to decide how requests should be routed. It can express conditions that are difficult to maintain with ordinary domain or IP rules.

For most users, normal Rule Mode is easier to understand, audit and troubleshoot. Script logic should be kept small and documented because a hidden condition can change routing in surprising ways.

When to use Script Mode

If a script produces unexpected results, simplify it to one known domain or request, verify the output, then add conditions back gradually.

Usage notes

Before changing modes, confirm that the subscription profile has updated successfully and that the selected policy group contains at least one usable node.

Recommended use

  • Use Script Mode only when ordinary rules are not enough.
  • Avoid copying unknown scripts into a production profile.
  • Document why each script condition exists.