Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
This is a question about reusing local web browser client to access the internet resource. It may have something with program, but mainly about the thought of how to achieve the goal of reusing web browser client(edge for example you could type edge://extensions/ and see what I said,chrome,eg.) to view the internet resources. Or is it possible to do so?

I'm from a country where some of the internet websites have been blocked by the government . So technically I can not access those resources. However there is a demand , there is a breach. For example, the web browser client has providing some extension components which support the users to breakthrough the block when these users applied this extension components, like VPN network , for free.
So here is what I'm thinking: Is there any possible way to reprogram or reusing the ability to access those blocked websites ? There must be a way to do so, right ?
Now you can open your chrome or edge browser extension page, you would see some some vpn ext has the background view links , if you click into this view of the vpn ext , there would be a DevTool window for the vpn background , after I searched and read little of the ext dev articles, you could see the vpn proxy details like proxy server ip & port / protocol . If you switched into the 'console' page, you could type this js code to display the details.
    {'incognito': false},
    function(config) {console.log(JSON.stringify(config));});
The result wolud be something like that:
Here in my case , I also switched into 'network' page , I find a xhr/fetch request , the response also displayed the authorization details between my web browser and the vpn server , I can not post the image , so I post the response here
    "success": true,
    "data": {
        "username": "50add3f2676cf7f7139b0f334aebd74e",
        "password": "WiKsLXbMryOZg89m",
        "region": "ru-spb",
        "regionName": "Saint Petersburg",
        "regionDescription": "Russia, Saint Petersburg",
        "type": 0,
        "protocol": "https",
        "port": 10799,
        "addresses": [
        "config": ""
    "errors": []
In my case , you could see that , the vpn proxy ip & port and authorization like :
LOGIN USER:50add3f2676cf7f7139b0f334aebd74e
So far,the proxy of vpn details now all clear.
What I do next ? I guess you have figured it out.
I try to launch chrome browser with proxy server parameter from command line, however , the proxy DOES NOT work as I expected. Does Anybody can tell what I'm wrong ?

What I have tried:

suppose there is a scenario like this:
I use windows socket to build some connection with the target website server , I submit my GET request to the server ,
I get the response from the server , the html response , for example.
I parse the html response , fetch the data interested.
That is what I can do right now for the website not blocked.What should I do or learn to do to access those blocked sites by reusing the web browser client VPN extensions, I mean program ?
Updated 16-Nov-23 2:06am

1 solution

You want a VPN, and not reinvent a protocol.
Share this answer
Yount_0701 21-Nov-23 5:32am    
Your words definitely not a solution. I add some details after 10 months. If you have time , hope you review these detail , and mostly , hope you finish your solution , lol.
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900