Skip to content

Regarding the browser issue, I would like to ask the author for help. Thank you very much for your open source help. #1170

Open
@cplasfwst

Description

@cplasfwst

Rod Version: v0.116.2

First of all, thanks for all the work you're putting into the library!

The code to demonstrate your question

  1. Clone Rod to your local and cd to the repository:
func main() {	
	path := `D:\2025zhiwenXUEXI\chrome\Chrome-bin\chrome.exe`
	u := launcher.New().
		Set("headless").
		Delete("--headless").
		Set("user-data-dir", "data/").
		Set("lang", "en-US").
		Bin(path).
		Leakless(true).
		Headless(false)

	launch := u.MustLaunch()
	defer u.Cleanup()

	b := rod.New().ControlURL(launch).MustConnect()
	b.MustPage("https://baidu.com")
	b.MustPage("https://bot.sannysoft.com/")

	time.Sleep(100 * time.Second)
}

What you got

I compiled a chromium browser. Now I need to use go-rod to run my own compiled browser,I can run the browser normally using the above code, but when I use https://bot.sannysoft.com/ to check, the fingerprint information is:
Image

User Agent is always displayed: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

What you expect to see

I hope go-rod will not modify the parameters on my browser. I can use my own browser's parameter settings normally. What should I do?
The normal display should be my own fingerprint information. I can create a new window manually and it works fine. Example picture:
Image

What have you tried to solve the question

I tried using user mode,Then bin my own browser(https://go-rod.github.io/i18n/zh-CN/#/custom-launch?id=user-mode), but it still doesn't work

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestions related to rod

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions