How to Spoof Referer URL

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: How to Spoof Referer URL

    you mean like?
    (this is some old beta1 code i wrote years ago, don't know if all the
    classes are still named appropriately, as I haven't used it since i wrote
    it.)

    Function FetchURL(SomeURL as String) as String
    Dim WebResp as HTTPWebresponse
    Dim HTTPGetRequest as HttpWebRequest
    Dim sr As StreamReader
    dim myString as String

    HTTPGetRequest = WebRequestFactory.Create(SomeURL)
    HTTPGetRequest.KeepAlive = false
    HTTPGetRequest.Referer = "http://www.microsoft.com"
    WebResp = HTTPGetRequest.GetResponse()
    sr = new StreamReader(WebResp.GetResponseStream(), Encoding.ASCII)
    myString = sr.ReadToEnd()

    Return myString
    End Function

    Cheers!
    Dave
    [url]www.aspNetEmail.com[/url]


    "Admin" <intermension@hotmail.com> wrote in message
    news:37881286.0307052133.338c97a5@posting.google.c om...
    > Hi There
    >
    > Can someone tell me how to do this using .net??
    > Thanks.
    >
    > Henry

    dave wanta Guest

  2. Similar Questions and Discussions

    1. flash and cgi.referer
      I'm trying to create a flash anti-leech method, whereby my flash movie calls a ..cfm module that compares the cgi.host and cgi.referer variables. ...
    2. url referer
      Hi, Is there anyway you can use coldfusion to get the full url of a webpage? #cgi.HTTP_REFERER# works but only if a link is actually clicked...
    3. Page referer not getting set
      Hi All, I do web design for some small organizations, and one of the sites I have set up takes online conference registrations. Now, most of the...
    4. Ma Referer length
      All, I have a question about the Max Referer length. By default this is 256 I am not fully sure I understand this property. It this a header that...
    5. how do I spoof a get request
      Yeah, I believe on Apache/Linux, it needs to be compiled in, and on windows there is just some configuration and file moving to do. cURL will do...
  3. #2

    Default Re: How to Spoof Referer URL

    Yes. Precisely like that. Thank you.

    "dave wanta" <nospam@nospam.com> wrote in message news:<eBAncY8QDHA.2852@tk2msftngp13.phx.gbl>...
    > you mean like?
    > (this is some old beta1 code i wrote years ago, don't know if all the
    > classes are still named appropriately, as I haven't used it since i wrote
    > it.)
    >
    > Function FetchURL(SomeURL as String) as String
    > Dim WebResp as HTTPWebresponse
    > Dim HTTPGetRequest as HttpWebRequest
    > Dim sr As StreamReader
    > dim myString as String
    >
    > HTTPGetRequest = WebRequestFactory.Create(SomeURL)
    > HTTPGetRequest.KeepAlive = false
    > HTTPGetRequest.Referer = "http://www.microsoft.com"
    > WebResp = HTTPGetRequest.GetResponse()
    > sr = new StreamReader(WebResp.GetResponseStream(), Encoding.ASCII)
    > myString = sr.ReadToEnd()
    >
    > Return myString
    > End Function
    >
    > Cheers!
    > Dave
    > [url]www.aspNetEmail.com[/url]
    >
    >
    > "Admin" <intermension@hotmail.com> wrote in message
    > news:37881286.0307052133.338c97a5@posting.google.c om...
    > > Hi There
    > >
    > > Can someone tell me how to do this using .net??
    > > Thanks.
    > >
    > > Henry
    Admin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139