Custom user agent in Firefox

Hello guys, so I have a problem. I need to set a custom user-agent while trying to go to a highly secure webpage (This website is owned by the company I work for and it only accepts users with specific custom user-agents). Is it possible to do this? Have anyone tried this before and has any tips?

Hi @Povilas_Jonikas ,
Website have UI elements, we can use UiPath with it, we have many process with owened website in bank or tax…etc
They have many step to access, but human can click or type into setting to access, Robot can do as step like people,
Or you can ask policy to access this website
regards,

1 Like

oh, ok, got it. But still, a curiosity question. Is it possible to change user agents while scroling a website? It would be great to practise against people, who manipulate user agents by scrapping websites.

In general you can try

  • create a profile and set/override the user agent setting
  • open / use Firefox with the prepared profile
1 Like

Hi

Well it is possible to set a custom user-agent in UiPath

  1. Use the HTTP Request activity.

The HTTP Request activity allows you to specify a custom user-agent in the Request Headers property.

Here is an example of how to set a custom user-agent using the HTTP Request activity:

`// Create a new HTTP Request activity.
var httpRequest = new HttpRequest();

// Set the custom user-agent in the Request Headers property.
httpRequest.RequestHeaders.Add(“User-Agent”, “MyCustomUserAgent”);

// Execute the HTTP Request activity.
httpRequest.Execute();`

Hope this clarifies

Cheers @Povilas_Jonikas

1 Like

Thanks, ill try them out and let you know :slight_smile:

Thanks for the response, but I wanted to ask a question. By making the HTTP request, I will be able to navigate through the webpage with the custom header inputed through the HTTP request activity?

If that we page has API access you can feed in data or search for data
@Povilas_Jonikas

1 Like

Oh, no, sadly, it doesnt

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.