Hi Buddy,

Can you embed the Google Analytics code into the needhost.html page? It has 
been a long time since I managed EZproxy, but Google Analtyics was the easest 
plug-in tools to track referred URLs and many other things some years ago. Just 
a thought. 

Best,
Sarah

-----Original Message-----
From: Code for Libraries <[email protected]> On Behalf Of Eric Phetteplace
Sent: Thursday, November 15, 2018 3:43 PM
To: [email protected]
Subject: Re: [CODE4LIB] Capturing referring URL for proxy problem?

Hi Buddy,

I think you would have to obtain access to the HTTP referrer headings to do 
this and those are largely useless nowadays since most sites are HTTPS and do 
not populate them. But if it is possible to customize the needhost.html to 
check for that, you could at least collect some data. If you can't do anything 
server side, JavaScript has a "document.referrer" property but I'm not sure how 
accurate it is:
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.w3.org_TR_2009_REC-2DDOM-2DLevel-2D2-2DHTML-2D20090303_html.html-23ID-2D95229140&d=DwIBaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=HYJfmmpRQCFN-a3OlsFrNfqLfwACzA92dvpSLMNl8OE&m=612NRIuCDgBVVz-7tg9XqsqYLnk2rxJSNXkC4_1T-FE&s=-N2_zbpcgv7SX6HVzrDwFVjR7B_xeYdnd2kikPbWZ2c&e=

Browser support is bad (Chrome & Firefox only 
<https://urldefense.proofpoint.com/v2/url?u=https-3A__developer.mozilla.org_en-2DUS_docs_Web_API_Document_referrer-23Browser-5Fcompatibility&d=DwIBaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=HYJfmmpRQCFN-a3OlsFrNfqLfwACzA92dvpSLMNl8OE&m=612NRIuCDgBVVz-7tg9XqsqYLnk2rxJSNXkC4_1T-FE&s=rxsfFDDUs1crCU53dPFp_SDKy0iEyqzKR6n6zr6_xJc&e=>).
In my testing, document.referrer only returns the google domain, not a full 
URI, for search referrals and was sometimes entirely empty (e.g. after going 
through our CAS login screen on the way through EZproxy). Good luck!

Best,
Eric


On Thu, Nov 15, 2018 at 12:29 PM Pennington, Buddy D. <[email protected]>
wrote:

> Hi all,
>
> We are an EZproxy shop. If someone clicks a proxied link and gets 
> directed to the needhost.html error page because the proxied link is 
> not included in the configuration file we collect that link and allow 
> the user to submit the problem to us to fix. What we would also like 
> to collect is the page the user is on when they click the problem 
> link. For example, if they click a bad EBSCO link on a Canvas page, we 
> want to collect both the EBSCO link and the Canvas page URL. Is there a 
> fairly easy way to do this?
>
>
>
> Buddy Pennington
> Head of Library Systems & Technology (Librarian III) Miller Nichols 
> Library University of Missouri--Kansas City
>

Reply via email to