- Release v1.6
- Download Source
- Follow the project on GitHub project page or report a bug!
- View Full Documentation
- Example: Simple PHP Proxy
When don’t I need a proxy?
So, when do I need a proxy?
Eliminate the “cross-domain” bit.
Imagine making a copy of the remote data available locally. Your first thought might be to manually copy the data to your server.. which is feasible only if there’s a very small amount of data that never changes.. but what if the data is dynamic, or what if there’s a lot of it?
That’s where the proxy comes in!
Why use Simple PHP Proxy?
A few of Simple PHP Proxy’s features:
- Requested URLs can be white-listed and validated against a regex.
- Optionally forward client cookies / SID to the remote server.
- Optionally forward configurable User Agent to the remote server.
- Requests can use either GET or POST request methods.
- Remote data can be delivered as-is with all remote headers intact (disabled by default to limit XSS vulnerabilites).
- Remote data can be wrapped in a JSON/P structure that includes status codes and remote headers (JSONP disabled by default to limit abuse).
- If using JSON/P and remote data is valid JSON, it will be merged into the resulting data object.
But what do cats think?
Wow, even Loki loves Simple PHP Proxy, what more endorsement could you possibly need?
Still, you don’t have to take our word for it.. just check out the Simple PHP Proxy example to see how it works, download it onto your server, and have fun!