Random User-Agent in VB.NET

This post was imported from an old blog archive, and predates the creation of AdamCaudill.com

Here’s a simple little example of a dynamic User-Agent in VB.NET. It uses a fairly large list of UA strings, and uses 1 randomly. The code is fairly simple, should be easy to add to any application that needs it.

Code:

Usage:

You’ll need this as well: UA List