Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Web-App-Sec
[Top] [All Lists]

Re: HTTP REFERER not set in Internet Explorer

Subject: Re: HTTP REFERER not set in Internet Explorer
Date: Thu, 17 Nov 2005 08:05:38 -0800
Hello All,

Thank ya all for the responses. I am aware that the HTTP_REFERER can
be easily forged. However I am using it in a context which makes it
somewhat useful. Our application is NOT completely dependent on the
HTTP_REFERER for security, there are other mechanisms involved as
well.

I am using HTTP_REFERER to:
1) Track users on the website. And use it to optimize the layout of the site.
2) Prevent direct linking to some of our web pages. Anti-leeching??? I
know this can be forged, but I think it will prevent newbie webmasters
from direct linking.

The following are solution that were proposed. Thanks :) They are very helpful.

------------ Solution 1 ------------------
<script language="JavaScript"><!--

function goto_url() {
// This JavaScript function, generate confirmation message for the license
to be deleted.
  if (userPressesYes()) {
       return true;
  } else {
     return false;
  }
}
</script>

<body>
<a href="referer_test.php?action=output" onClick="return goto_url();">Click
Here</a>;
------------------------------------------

-------------Solution 2 ------------------
location.href = 'script.php?href=' + escape( location.href );
------------------------------------------


In Peace,
Saqib Ali
http://www.xml-dev.com/blog/
Consensus is good, but informed dictatorship is better.

<Prev in Thread] Current Thread [Next in Thread>