Jump to content

How do you set the referrer URL in IE


Recommended Posts

This is what I have been trying:

#include <IE.au3>

$oIE = _IECreate("http://google.com")
_IELinkClickByIndex($oIE, 4)
$Obj = _IEDocGetObj($oIE)

$referrer = $Obj.referrer
ConsoleWrite("The referrer URL is " & $referrer & @CRLF)

;this does not work
;$Obj.SetRequestHeader("referrer", "http://yahoo.com")

;or this
;$Obj.referrer = "http://yahoo.com"

;$referrer = $Obj.referrer
;ConsoleWrite("The referrer URL is now " & $referrer & @CRLF)
Link to comment
Share on other sites

There is in _IEPropertyGet, that is plain to see in the help file.

But I imagine it will be a little more difficult to try to spoof a referrer, which I think would be

done via HTTP

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

which I think would be done via HTTP

Yep, I have done this with the WinHttp UDF but for what I am doing I also need some of the options that only the IE UDF can provide. Things like interacting with Javascript. I can't image that their is not a way of tricking IE into do the same thing.

Link to comment
Share on other sites

It used to be not uncommon for websites to use a type of synergistic log in, where you could log in to one site or sub-domain of a site, and then through referrer it would indicate your log in status, if you knew the version of web server, you could assume they used the defaults and spoof it into thinking that you were already logged in. I don't think any web servers do it that way anymore

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...