New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

4everproxy

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

4everproxy

4everproxy is a secure and anonymous web proxy. Hide your IP address while browsing the Internet.

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

4EVERPROXY - FREE WEB PROXY

4everproxy

4everproxy is a secure and anonymous free web proxy. Hide your IP address while browsing the Internet.

HOW TO INSTALL?

npm i 4everproxy

FUNCTIONS IMPORTING

CJS AND ESM SUPPORTED

//CommonJS
const webproxy = require("4everproxy");

//ES Module
import webproxy from "4everproxy";

SIMPLE USAGE

//CommonJS
const webproxy = require("4everproxy");

//ES MODULE
import webproxy from "4everproxy"

(async()=>{
    //THIS FUNC. IS FOR GETTING THE COOKIES AND AVAILABLE SERVERS & IP'S TO BE USED ON REQ.
    let {proxy_list,cookie} = await webproxy.getConfig()
    console.log(proxy_list)

    //THIS IS THE DATA THAT WE'RE GOING TO POST
    let formData = {
        u: 'https://youtube.com', //YOUR URL YOU WANT TO PROXIFIED
        u_default: 'https:/\/www.google.com/', //IF "u" params. IS NOT FILLED IT WILL USE THIS AS YOUR URL (NOT REALLY IMPORTANT)
        customip: '', //IF YOU HAVE OWN IP
        server_name: 'ny', //GET THIS VALUE ON "getConfig()" servers[. . .array]
        selip: '198.98.51.35', //GET THIS VALUE ON "getConfig()" ips[. . .array]
        allowCookies: 'on' //THERE ARE MORE OTHER OPTIONAL OPTIONS BUT I CHOOSE TO EXCLUDE THEM ON REQ.
    }

    //THE RESULT OF THIS FUNC. IS THE UNBLOCKED CONTENT
    let res = await webproxy.proxy(formData,cookie).catch(e=>console.error(e))
    //"res" variable contains the html response
    console.log(res);
})();

EXTRA'S

This is for the config/forData "server_name" & "selip"

//getObjectByLocation([keyword:string],[array]).yourObjectKey

//for server_name
webproxt.getObjectByLocation('newyork',proxy_list.servers).server_name
//for selip
webproxy.getObjectByLocation('newyork',proxy_list.ips).ip

Here's an example on getObjectByLocation()

let formData = {
    server_name: webproxt.getObjectByLocation('newyork',proxy_list.servers).server_name,
    selip: webproxy.getObjectByLocation('newyork',proxy_list.ips).ip
}

Keywords

FAQs

Package last updated on 07 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc