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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top