How to determine if a request originated from a link click , or otherwise
( such as pasting the url the browser ).
This would seem to work ...
if (Request.Url.Ho st == Request.UrlRefe rrer.Host)
{
But what if Request.UrlRefe rrer == null ... ?
Any other ideas ? 4 8173
"John A Grandy" <johnagrandy-at-yahoo-dot-comwrote in message
news:OH******** ******@TK2MSFTN GP05.phx.gbl...
How to determine if a request originated from a link click , or otherwise
( such as pasting the url the browser ).
This would seem to work ...
if (Request.Url.Ho st == Request.UrlRefe rrer.Host)
{
But what if Request.UrlRefe rrer == null ... ?
Request.UrlRefe rrer, aka Request.ServerV ariables["HTTP_REFER ER"] cannot be
relied upon at all... http://www.google.co.uk/search?hl=en...reliable&meta=
Just like the IP address, it is so easy to spoof it
( http://www.datatrendsoftware.com/spoof.html), to the extent where the best
advice I can give you is simply not to try. Think about why you *REALLY*
need to know this information, and then work around it...
Hmmm ...
Ok. Well, for sites with a tracking page that writes some tracking data to
db and then redirects to the target url, what are other solutions to stop
hackers from manipulating the tracking data ?
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:ur******** ******@TK2MSFTN GP03.phx.gbl...
"John A Grandy" <johnagrandy-at-yahoo-dot-comwrote in message
news:OH******** ******@TK2MSFTN GP05.phx.gbl...
>How to determine if a request originated from a link click , or otherwise ( such as pasting the url the browser ).
This would seem to work ...
if (Request.Url.Ho st == Request.UrlRefe rrer.Host) {
But what if Request.UrlRefe rrer == null ... ?
Request.UrlRefe rrer, aka Request.ServerV ariables["HTTP_REFER ER"] cannot be
relied upon at all... http://www.google.co.uk/search?hl=en...reliable&meta=
Just like the IP address, it is so easy to spoof it
(http://www.datatrendsoftware.com/spoof.html), to the extent where the
best advice I can give you is simply not to try. Think about why you
*REALLY* need to know this information, and then work around it...
"John A Grandy" <johnagrandy-at-yahoo-dot-comwrote in message
news:eG******** ******@TK2MSFTN GP04.phx.gbl...
Ok. Well, for sites with a tracking page that writes some tracking data to
db and then redirects to the target url,
LOL! All that tells them is that the target URL has come from the tracking
page! The initial request to the tracking page could have come from
anywhere - don't you get it?
what are other solutions to stop hackers from manipulating the tracking
data ?
None that I know of, and this is another of those occasions where I would
dearly *love* to be proven wrong...
I've seen all sorts of "smoke and mirrors" solutions involving encrypted
querystrings and God knows what - none of them works...
Guess I'm not as cynical as you.
I do see a couple moves in the right direction :
1. checking Request.UrlRefe rrer.Host against Request.Url.Hos t at least
prevents against the simple hack of copy/pasting a url from a link button
into a brower.
2. hashing the track click url and tacking it onto the end as an additional
param and on link click re-constructing the hash server-side and comparing
to the link's hash would prevent against automated software that sent
endless tracking requests with small variations
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:u8******** ******@TK2MSFTN GP05.phx.gbl...
"John A Grandy" <johnagrandy-at-yahoo-dot-comwrote in message
news:eG******** ******@TK2MSFTN GP04.phx.gbl...
>Ok. Well, for sites with a tracking page that writes some tracking data to db and then redirects to the target url,
LOL! All that tells them is that the target URL has come from the tracking
page! The initial request to the tracking page could have come from
anywhere - don't you get it?
>what are other solutions to stop hackers from manipulating the tracking data ?
None that I know of, and this is another of those occasions where I would
dearly *love* to be proven wrong...
I've seen all sorts of "smoke and mirrors" solutions involving encrypted
querystrings and God knows what - none of them works... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bart plessers |
last post by:
Hello,
I have a form with some checkboxes, i.e.
The default value of this checkbox is determined in a global file
(config.asp), that is included in first line of the form, i.e.
ShowFilenames = 1
The first time the form is displayed, the value of ShowFilenames should be
|
by: Nathan Sokalski |
last post by:
I want to determine the operating system using ASP (or VBScript inside of
ASP). I tried to get it using the Request.
ServerVariables(EnvironmentVariable) method. On the web page about ASP in
which I found this method, it gave a list of possible values for the
EnvironmentVariable parameter. One of these, which is the one that I tried
to use, was HTTP_UA_OS. However, this value did not seem to work, and when I
displayed a list of possible...
|
by: Hennie de Nooijer |
last post by:
Hi, This is a diffcult issue to explain. I hope to make my problem
clear to you.
SITUATION
I'm building A SLA Query for a customer. This customer has an awkward
way to determine the SLA results ;-) Depending on a category which is
stored in a headertable (Requests) a field and logic is determined how
to get a proper Close_Date. This Close_date can be the closedate of
the request. It is also possible that the close_date is a certain...
|
by: long5120 |
last post by:
I am trying to use webpage with javascript to check if a web server is
responding. I was thinking of using 2 frames. Frame1 will have the
site, and the Frame2 will be a status bar (not really needed). This
webpage will call the site's homepage and refresh in 10 seconds. If I
can see the homepage then, the site is up, else site is down. I have
an example of my code below.
My question, is it possible to check the homepage in frame1 (after...
|
by: Randy Webb |
last post by:
Is the HTTPRequest Object in IE limited to the Same Origin Policy when
run from a webserver?
<URL: http://www.hikksworld.com/HTTPRequestIE.html />
When run in IE, throws a "Permission Denied" error. When I run that page
locally, it works without errors. Which leads me to believe that its
Same Origin Policy coming in, since I can give it www.hikksworld.com
instead of www.google.com and it works from the server.
Or, is it just something...
| |
by: Christopher W. Douglas |
last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a
method that handles several events, such as closing a form and changing the
visible status of a form. I have some code that applies to all these
events, but I need to have specific code execute when the form closes. The
properties for this method are sender (the originator) and e (event
arguments). I know how to get typeof (sender) to determine what form or...
|
by: Keith H Duggar |
last post by:
Can anyone point me to the origin and history of the dot
syntax for accessing structures?
Were there languages prior to C that used it?
Who invented it?
etc.
|
by: Paul L |
last post by:
Anyone know a quick way of determining which direction the mouse cursor is
moving (ie. up, down, left, right) from a specified origin?
Thanks,
Paul L
|
by: Turko |
last post by:
Hi all.
I m searching for the equivalent of :
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
} catch (e) {
alert("Permission UniversalXPConnect denied.");
}
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |