Skip to main content
OCLC Support

Using URL version 2 to redirect to a site

Symptom

  • How to use URL (version 2) to make users log in through EZproxy to redirect to a site that cannot be proxied to.  This is frequently used when the URL to the resource contains account access information, so having the direct link on your institution's site allows anyone viewing your site to gain access, even if they do not belong to your institution. This will mask the final URL EZproxy will eventually go to, and only allow the redirect to the site's URL after the user has successfully authenticated through EZproxy
  • An example of using this is with the New York Times site. The only way to proxy to their site is if the subscription allows proxying with the Access NYT stanza. But some libraries have subscriptions that are only accessed going to nytimes.com with a URL containing their account information. Using URL (version 2) allows using a link through EZproxy that just points to what you name this link (for example: https://your.ezproxy.url/login/nyt). Only after authenticating to confirm the user is with the library are they redirected to the URL directly (not proxied).

Applies to

  • EZproxy

Resolution

Short introduction or instructions to follow these steps:

  1. Get the URL to access the site, then set a stanza like this. The [sitename] is whatever you want it to be; this is also then used in the link set to call this in EZproxy:
    Title [title for stanza]
    URL -Redirect [sitename] https://url.to.resource/account=12345
  2. After restarting EZproxy, set a link like https://your.ezproxy.url/login/[sitename] on your site for this resource. After the user authenticates they will be sent directly to https://url.to.resource/account=12345.

Additional information

x

Page ID

66561