Faking Referer URL with WebClient

  • Thread starter Thread starter jehugaleahsa
  • Start date Start date
J

jehugaleahsa

Hello:

How is it possible to specify the referrer's URL when using WebClient.
A lot of sites do not allow hotlinking, which is problematic for my
application. However, if I use the web site with the link in it, I
will be able to get access.

Could someone send me an example of setting the referrer's URL?

Thanks,
Travis
 
How is it possible to specify the referrer's URL when using WebClient.
A lot of sites do not allow hotlinking, which is problematic for my
application. However, if I use the web site with the link in it, I
will be able to get access.

Could someone send me an example of setting the referrer's URL?

Try:

wc.Headers.Add("Referer",http://www.foobar.com/blabla.html");

Arne
 
Back
Top