New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent IP leak. WebRTC #4149
Comments
I noticed that headless mode does not support extensions. At least that was 9 months ago, is there any improvement in this? If not, is there any way to prevent leaking IP address through webrtc without extension? Thank you. |
Have you tried |
@dudeperfect95 as you noticed later, headless doesn't support extensions and probably won't in a foreseeable future. You can run headful though - it should solve the issue.
This I'm not sure about. What's the extension and what does it do? |
I used headless: false and it works fine. Extension is webrtc disabler. Cant find exact link where did I get it. I have another question, if I want to load more than one extension, how should I declare path? I have such folder tree:
... trimmed This code works fine, but If I want to add another extension, what should I do? If I change extension path to /extensions/ none of them works. |
@dudeperfect95 you can pass a comma-separated list of paths for both |
Blocking all outgoing UDP traffic except DNS can help in headless mode. |
Another way to do it:
|
@ediweissmann I used your solution but its not helping . some how my local ip is being exposed |
Doesn't work |
It works. Thanks |
Thank @ediweissmann |
the example for evaluateOnNewDocument didn't work for me but this works for me even with headless: true (if you don't mind disabling rtc):
|
Thanks it worked with latest new headless puppeteer |
It works for me |
I have installed TOR in my server, and using it as proxy server for puppeteer. It is running on port 9060
Tell us about your environment:
What is the expected result?
See that my public sever's IP is not leaking.
What happens instead?
I see this:
Even tough I am using TOR, i see that my real IP address is leaking through WebRTC.
Im sure that TOR proxy is working cause puppeteer works fine and if I go to whatismyip.com I see a different IP addres than mine's.
As you can see I tried to use this:
#2878
as a solution, but it didn't help. (I assume extension works fine, cause I get no errors while running the code).
So my question is, how can I disable WebRTC so it won't leak my public IP address?
The text was updated successfully, but these errors were encountered: