Sign in to follow this  
Followers 0
Herb191

How do you set the referrer URL in IE

8 posts in this topic

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)

Share this post


Link to post
Share on other sites



Maybe this

$referrer = _IEPropertyGet($oIE, "refferer")

No that won't set the referrer URL there is nothing in _IEPropertyGet or _IEPropertyset that will set the referrer URL (as far as I know).

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I hope you are just testing the security of your website, are there any servers that don't detect that exploit anymore?

What exploit are you referring to? If it's getting the referrer I don't see how can it pose a security risk.

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0