views:

72

answers:

0

Hi,

We are developping a software in c# (WinForm) that use a WebBrowser Control. We would like to spoof referer but it seems very hard to do it well.

What we did : We just add "Referer: http://www.ourwebsite.com" in the http header when we use WebBrowser.Navigate(URL, null, null, REFERER);

Result : Using this method, on URL, we can detect that a referer is www.ourwebsite.com in PHP for example. So this seems to be done BUT...

Problem : When we go to Google Analytics of URL, there is NO www.ourwebsite.com in referers...

When we show referer using Javascript, it is not working. Using PHP, it is... I know those methods are different but HOW TO spoof also referer for Javascript ?