[WEB4LIB] I Need an IP based url redirect Perl script

Brian Sheppard bboru at si.umich.edu
Wed Jul 12 12:53:54 EDT 2000


You might do better to have the server itself handle the re-direct. If
you're using Apache, there's documentation at

Apache 1.3 URL Rewriting Guide
http://www.apache.org/docs/misc/rewriteguide.html

-Brian


On Wed, 12 Jul 2000, David P. Moore wrote:

> I am looking for a cgi Perl script that will redirct a user who clicks on a
> url to a certain web page when that user is not from an appropriate IP
> address location.
> 
> Here's why I want it: Currently, if a user from off-campus clicks on a
> database link on our web page, they will get a 404 page, or a page that
> prompts for user-name and password, causing patron confusion. This is
> because all our databases are IP authenicated for on-campus only. I want to
> redirect these non-campus patrons to a web page that will display
> instructions about obtaining off-campus access.
> 
> I have found free Perl scripts that will do right the opposite-- redirect
> based on a certain domain, but I want to redirect on any BUT a certain
> domain.
> 
> Has anyone found/using this? How are other libraries handling this issue? Is
> there a better solution?
> 
> David P. Moore
> Electronic Resources Librarian
> M. Louis Salmon Library
> University of Alabama in Huntsville
> Huntsville, AL 35899
> 256-890-6285
> FAX: 256-890-6083
> mooredp at email.uah.edu
> 
> 

-------------------------------------------------------------
Brian Sheppard
bboru at mail.si.umich.edu



More information about the Web4lib mailing list