Code Monkey home page Code Monkey logo

rprxy's Introduction

rprxy

Because Roblox does not allow HttpService requests to roblox.com an external proxy is needed for access to site APIs. This will proxy all requests to Roblox via server.js except when the path is /proxy and a static file exists.

A limited number of APIs are available via the /proxy/api path via api.js.

Installation

Simply clone the project and type npm install when in the folder to install all dependencies. You can now start the server with node server.js.

The default configuration does not have to be changed for a working server and it will automatically work with any subdomain your DNS supports.

Configuration

The only configuration files you may want to edit are blocked.json and re_blocked.json. All paths that match any in blocked.json exactly will be blocked. If you want to match with regex, which can also be used for partial matching, add the pattern to re_blocked.json. If anything matches at all the URL will be blocked.

There are a few settings you can change directly in the server.js file. If serveHomepage is true the rprxy home page will be at the root of the domain. If serveHomepageOnAllSubdomains is true this will apply to all subdomains, otherwise it will only apply to the root domain.

If you have your own domain point all the subdomains you need at the server and it will work automatically when you visit those subdomains on your own site. If you are not able to add subdomains for any reason (usually if you just don't have a domain name) you can set subdomainsAsPath to true in the server.js file. When this is enabled you can request a specific subdomain by using it first in the path (see the examples below).

Examples

In every example the main domain is rprxy.xyz.

To search the catalog (search subdomain):
https://search.rprxy.xyz/catalog/json

If you have subdomainsAsPath enabled:
https://rprxy.xyz/search/catalog/json

Get recommended username (no subdomain):
https://rprxy.xyz/UserCheck/GetRecommendedUsername?usernameToTry=Froast

If you have subdomainsAsPath enabled:
https://rprxy.xyz/www/UserCheck/GetRecommendedUsername?usernameToTry=Froast

Having no subdomain is the same as having a www subdomain, below is exactly the same:
https://www.rprxy.xyz/UserCheck/GetRecommendedUsername?usernameToTry=Froast

If you have subdomainsAsPath enabled it doesn't matter what the actual subdomain is:
https://www.rprxy.xyz/www/UserCheck/GetRecommendedUsername?usernameToTry=Froast

rprxy's People

Contributors

sentanos avatar fxllencode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.