Use WebHeaderCollection that cannot be done because of its restriction modification
Referer and User-Agent
Only modify the registry
A Standard User Agent String Would Would Look Similar TO:
Mozilla / 4.0 (Compatible; Msie 5.5; Windows NT 5.0)
Which Means Internet Explorer 5.5 Running On Windows 2000.
CHANGING The Default User Agent Values Open Your Registry and Find The Key Below. If it does not already exist1 crete it.
[HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Internet Settings / 5.0 / User Agent]
Create three new string values called "Compatible", "Version" and "Platform". Set them to equal what you would like to be displayed instead of "compatible", "MSIE 5.5" and "Windows NT 5.0" respectively in the example above .
You can also modify the value of "to change the browser name" Mozilla / 4.0 "in The Example Above.
Changing the Branded User Agent String In addition when a customized user agent string is used it may contain additional information set by the company that created a branded version of the browser For example a branded version from an ISP may look like.:
Mozilla / 4.0 (Compatible; Msie 5.5; Windows NT 5.0; Your_ISP_NAME)
Since The Remote Web Server It May Be Stored In The Web Server Log Files and Therefore Possibly Used to TRACK BRANDED VERSIS OF A Web Browser.
TO CHANGE IT OPEN YOUR REGISTRY AND FIND THE [HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Internet Settings / User Agent / Post Platform].
Each value name listed in this key will be sent to the remote web server as an additional entry in the user agent string. To remove any additional information delete the values within the [Post Platform] key. To add additional entries create a string value and Name it the string you want to be self.restart Internet Explorer for the change. To take.
Note: This Tweak May Affect Some Online Services That Read this Information To Detect The Operating System Such as Microsoft Windows Update.
{Default) reg_szmozilla / 4.0compatiblereg_szcompatibleversionReg_szmsie 5.5platformReg_szwindows NT 5.0
HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion ...
Registry SettingsSystem Key: [HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Internet Settings / 5.0 / User Agent] Value Name: (Default), Compatible, Version, PlatformData Type: REG_SZ (String Value)
Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system We can not guarantee that problems resulting from modifications to the registry can be solved Use the information provided at your own risk...