So I'm making a script in VB.net that will basically create fake traffic which includes but not limited to a Fake Referer and Fake User-Agent.
I've got the script working pretty well so far but my stumbling point is the following:
Standard browser detection is detecting the correctly faked referer and user-agent but javascript "which most sites use to check referers these days" is not detecting it:
Detect User-Agent in Javascript
Detect Referer in Javascript
The code I'm using within VB.net is a simple WebBrowser control with the following:
and
Anyone that is able to provide any help with resolving this will get a free copy of the program and any future updates!
PS: I have double checked and the spelling of "referrer and referer" are correct, It would appear that standard HTML headers use a single R and javascript uses double R
I've got the script working pretty well so far but my stumbling point is the following:
Standard browser detection is detecting the correctly faked referer and user-agent but javascript "which most sites use to check referers these days" is not detecting it:
Detect User-Agent in Javascript
Code:
javascript: alert(navigator.userAgent)
Code:
javascript: alert(document.referrer)
Code:
WebBrowser1.Navigate("javascript: alert(navigator.userAgent)", "_self", Nothing, "User-Agent:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64)" & vbCrLf & "Referer:http://www.google.com" & vbCrLf)
Code:
WebBrowser1.Navigate("javascript: alert(document.referrer)", "_self", Nothing, "User-Agent:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64)" & vbCrLf & "Referer:http://www.google.com" & vbCrLf)
PS: I have double checked and the spelling of "referrer and referer" are correct, It would appear that standard HTML headers use a single R and javascript uses double R
Last edited: