AnyProxy: Redirect Network Requests Without Server Modifications

AnyProxy is a powerful Chrome extension that allows you to easily redirect network resources without server-side modifications. It provides a flexible way to forward any web requests to different destinations using regex-based rules.

Key Feat…


This content originally appeared on DEV Community and was authored by young

AnyProxy is a powerful Chrome extension that allows you to easily redirect network resources without server-side modifications. It provides a flexible way to forward any web requests to different destinations using regex-based rules.

Key Features

  • Simple Configuration: Set up forwarding rules with regex patterns.
  • No Server Changes: Redirect requests without modifying the target. server.
  • Real-time Updates: Rules take effect immediately without browser restart.
  • Developer Friendly: Perfect for local development and testing. Resource Types: Support for JavaScript, CSS, and API.

Perfect for:

  • Frontend developers testing local changes.
  • QA engineers comparing different versions.
  • Debug and troubleshoot network issues.
  • A/B testing without server deployment.

Usage

The proxy configuration consists of two parts in each array element:

  • First value corresponds to regexFilter
  • Second value corresponds to regexSubstitution

For detailed information, please refer to:

Note: The only difference is that capture group references in regexSubstitution are changed from \1-\9 to $1-$9.

Example Configuration

{
  "proxy": [
    ["https://developer.mozilla.org/static/js/chunk.js", "http://localhost:3000/js/proxy.js"],
    ["https://developer.mozilla.org/(.*)/js/chunk.js", "http://localhost:3000/$1/proxy.js"],
    ["https://developer.mozilla.org/(.*)/js/(.*).js", "http://localhost:3000/$1/$2.js"]
  ]
}

Getting Started

  • Install the AnyProxy extension from Chrome Web Store.
  • Click the extension icon to open the configuration panel.
  • Add your redirect rules and Effective directly.

GitHub: https://github.com/vainjs/any-proxy


This content originally appeared on DEV Community and was authored by young


Print Share Comment Cite Upload Translate Updates
APA

young | Sciencx (2025-08-30T10:57:24+00:00) AnyProxy: Redirect Network Requests Without Server Modifications. Retrieved from https://www.scien.cx/2025/08/30/anyproxy-redirect-network-requests-without-server-modifications/

MLA
" » AnyProxy: Redirect Network Requests Without Server Modifications." young | Sciencx - Saturday August 30, 2025, https://www.scien.cx/2025/08/30/anyproxy-redirect-network-requests-without-server-modifications/
HARVARD
young | Sciencx Saturday August 30, 2025 » AnyProxy: Redirect Network Requests Without Server Modifications., viewed ,<https://www.scien.cx/2025/08/30/anyproxy-redirect-network-requests-without-server-modifications/>
VANCOUVER
young | Sciencx - » AnyProxy: Redirect Network Requests Without Server Modifications. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/08/30/anyproxy-redirect-network-requests-without-server-modifications/
CHICAGO
" » AnyProxy: Redirect Network Requests Without Server Modifications." young | Sciencx - Accessed . https://www.scien.cx/2025/08/30/anyproxy-redirect-network-requests-without-server-modifications/
IEEE
" » AnyProxy: Redirect Network Requests Without Server Modifications." young | Sciencx [Online]. Available: https://www.scien.cx/2025/08/30/anyproxy-redirect-network-requests-without-server-modifications/. [Accessed: ]
rf:citation
» AnyProxy: Redirect Network Requests Without Server Modifications | young | Sciencx | https://www.scien.cx/2025/08/30/anyproxy-redirect-network-requests-without-server-modifications/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.