Checking to see if a referring url/link matches | Bytes (2024)

Home Posts Topics Members FAQ

Chumley the Walrus

I know I've used something like this in the past, can't put my finger
on it, tho...
I need to find out the method/keyword for checking to see if a user is
clicking into one webpage from a certain other webpage or url:

hypothetical example:
<%if referringurl = "http://www.yahoo.com" then

'do a function or task

end if%>

What would be the keyword or method/function for "referringu rl" in the
above example?

Thanks
Chum

Jul 19 '05 #1

Subscribe Reply

4 Checking to see if a referring url/link matches | Bytes (1) 1133 Checking to see if a referring url/link matches | Bytes (2)

Steven Burn

Function CheckReferer(sW hat, sMatch)
Select Case sWhat
Case sMatch
CheckReferer = True
Case Else
CheckReferer = False
End Select
End Function

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Chumley the Walrus" <sp*******@yaho o.com> wrote in message
news:1e******** *************** ***@posting.goo gle.com...

I know I've used something like this in the past, can't put my finger
on it, tho...
I need to find out the method/keyword for checking to see if a user is
clicking into one webpage from a certain other webpage or url:

hypothetical example:
<%if referringurl = "http://www.yahoo.com" then

'do a function or task

end if%>

What would be the keyword or method/function for "referringu rl" in the
above example?

Thanks
Chum


Jul 19 '05 #2

Steven Burn

Forgot to add, to use the function, you'd simply do;

<%
If CheckReferer(Re quest.ServerVar iables("HTTP_RE FERER"),
"http://www.yourdomain. com") Then
Response.Write "Yipee, they match"
Else
Response.Write "Oh dear, they don't match"
End If
%>

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Steven Burn" <pv*@noyb.com > wrote in message
news:#H******** ******@TK2MSFTN GP10.phx.gbl...

Function CheckReferer(sW hat, sMatch)
Select Case sWhat
Case sMatch
CheckReferer = True
Case Else
CheckReferer = False
End Select
End Function

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Chumley the Walrus" <sp*******@yaho o.com> wrote in message
news:1e******** *************** ***@posting.goo gle.com...

I know I've used something like this in the past, can't put my finger
on it, tho...
I need to find out the method/keyword for checking to see if a user is
clicking into one webpage from a certain other webpage or url:

hypothetical example:
<%if referringurl = "http://www.yahoo.com" then

'do a function or task

end if%>

What would be the keyword or method/function for "referringu rl" in the
above example?

Thanks
Chum



Jul 19 '05 #3

Evertjan.

Steven Burn wrote on 01 jul 2004 in
microsoft.publi c.inetserver.as p.general:

Function CheckReferer(sW hat, sMatch)
Select Case sWhat
Case sMatch
CheckReferer = True
Case Else
CheckReferer = False
End Select
End Function

Wouldn't that be the same as:
Function CheckReferer(sW hat, sMatch)
CheckReferer = (sWhat = sMatch)
End Function
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #4

Steven Burn

It would ;o) (I'd not thought of that, hehe)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ***********@194 .109.133.29...

Steven Burn wrote on 01 jul 2004 in
microsoft.publi c.inetserver.as p.general:
Function CheckReferer(sW hat, sMatch)
Select Case sWhat
Case sMatch
CheckReferer = True
Case Else
CheckReferer = False
End Select
End Function

Wouldn't that be the same as:
Function CheckReferer(sW hat, sMatch)
CheckReferer = (sWhat = sMatch)
End Function
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3 9880

Determining the referring URL

by: Jenkins |last post by:

I have a page with frames. The left frame is a list of urls. The main frame is loaded based on the url that was clicked in the left frame. Is there a way for the main frame to tell which url was clicked in the left frame? I'd like to avoid having to use a name/value pair in the links in the left frame, which I'm currently doing. I'd prefer...

PHP

8 10331

Checking XML DTD syntax and validating XML

by: Clifford W. Racz |last post by:

Does anyone know of a decent tool, preferably free, that will check and validate DTD syntax, to make sure that my DTD is correct? The only tool that I have found thus far is the IBM visual DTD tool, which I do like, but is limited. Basically, your DTD is "good" when it parses... and I am not sure this is the best way to do it. As for...

.NET Framework

22 4897

"Compile time" checking?

by: Qopit |last post by:

Hi there, I'm pretty new to Python and am trying to figure out how to get "will this code compile?"-like code checking. To me this is a pretty basic language/environment requirement, especially when working with large projects. It is *much* better to catch errors at "compile-time" rather than at run-time. One thing I've "found" is the...

Python

5 3220

title of referring document

by: Christina |last post by:

I can't seem to find any reference for grabbing the title of the referring page, which I want to use for creating a link. i.e. document.write ("Our thanks to <a href='"+document.referrer+"'>" +referring page title +"<a>"). I have looked into using location.history also. This is probably a standard thing, but through all the forums and...

Javascript

7908

What is ONU?

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...

General

7836

Changing the language in Windows 10

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...

Windows Server

8336

Maximizing Business Potential: The Nexus of Website Design and Digital Marketing

by: jinu1996 |last post by:

In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...

Online Marketing

8212

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

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...

General

1 5710

Access Europe - Using VBA to create a class based on a table - Wed 1 May

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...

Microsoft Access / VBA

5389

Couldn’t get equations in html when convert word .docx file to html file in C#.

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...

C# / C Sharp

1 2343

transfer the data from one system to another through ip address

by: 6302768590 |last post by:

Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

C# / C Sharp

1 1447

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

1175

Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy

by: bsmnconsultancy |last post by:

In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

General

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisem*nts and analytics tracking please visit the page.

Checking to see if a referring url/link  matches | Bytes (2024)
Top Articles
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 6444

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.