[FX.php List] Capturing IP for a choice calc
Peter Bates
p.bates at sjcpl.org
Wed Mar 1 10:51:11 MST 2006
We have other information that would be displayed that is not
copyrighted. It is only the link that leads to a pdf that can only be
viewed in-house. I would not want to lock out users from being to
view the non-copyrighted stuff. If while a user came to one of our
branches and copied the URL down as you suggested, then it kind of
sounds like I need a two-pronged approach, one to prevent the URL
from working, and the other to prevent the link from showing, when
accessed outside our network.
My project involves creating a digital library that gives online
access to newspaper clippings and other records that have been
collected since the early 1900's. Our staff is indexing everything
into a FMP database, and we are scanning and creating pdfs of all of
these clippings. The pdfs are accessed from a link that is stored in
the database. There is no copyright issues involved with a good
portion of the material. The clippings that are from our local
newspaper are copyrighted by them and they have only given us
permission to share their materials only with patrons when they are
in one of our branches.
We do have a proxy server that allows our patrons access to some of
our other restricted databases. They have full access to them only
after entering their library card number and name. Unfortunately,
that approach will not work for us, as we do want the general public
to have access to everything we don't have copyright issues with.
Maybe it would help if I give everyone a better example of what I'm
trying to do. If you want, go to:
http://fmcwp.sjcpl.org/1875Atlas/index.php
While this is not the pages I want to protect, the layout and general
operation will be similar to my copyrighted project. When you drill
down to a detail page at the bottom there is a link to access a pdf
of the image. Image that some of the records needed to be restricted,
(due to copyright), in a way that you could only see that link if you
were in our library and if you were accessing the pages from outside,
the link would be replaced by a phase explaining why and where they
could view the pdf, (or even the real article).
My part of the project is basically done, the FMP database, and the
FX.php web pages, but as I have already stated, I still learning php,
so I don't really don't how to do this part of the code.
Thanks,
Peter
On Mar 1, 2006, at 10:56 AM, Vinnie P. Taranto wrote:
> If I were you Peter, I would not use an IP check to display a link
> as the link could be copied and then entered into a browser
> anywhere. I would do an IP check at the top of the copyrighted
> material page and if the IP was invalid I'd through up a
> Unauthorized Access error. Just my $.02.
>
> Vinnie Taranto
> Technology Specialist & Database Engineer
> Dean of Students Office
> University of Florida
> MAIN: (352) 392-1261
> FAX: (352) 392-5566
> TOLLFREE: (877) 9UF-DEAN
> WEB: http://www.dso.ufl.edu
> EMAIL: vinniept at dso.ufl.edu
>
> ________________________________
>
> From: fx.php_list-bounces at mail.iviking.org on behalf of DC
> Sent: Wed 3/1/2006 10:17 AM
> To: FX.php Discussion List
> Subject: Re: [FX.php List] Capturing IP for a choice calc
>
>
>
> check this for general information about PHP's predefined variables:
>
> http://us2.php.net/manual/en/
> reserved.variables.php#reserved.variables.server
>
> in short... you want to use this variable in PHP:
> <?php
> echo $_SERVER['REMOTE_ADDR'];
> ?>
>
> cheers,
> dan
>
> Peter Bates had written:
>> I'm building a solution that contains some copyrighted material on
>> our
>> website. We have permission to share the copyrighted material with
>> our
>> patrons while they are in one of our building, but not if they are
>> accessing the site from outside the building. I'm assuming that I
>> need
>> to capture the requesting IP address before the data is displayed
>> that
>> basically does the following:
>>
>> If IP = Our in-house IP range <!-- We have our own in-house
>> network, inside and outside DNS servers, web server, etc. -->
>> Show data from field "x" <!-- This would be actually a
>> link that is stored in a FMP field. -->
>> Else
>> Show "We're sorry, but due to copyright restrictions, this
>> material
>> is only available in one of our library branches" <!-- This
>> would be
>> displayed in place of the data from field "x" -->
>> End If
>>
>> As I am still floundering around using FileMaker Pro with FX.php, I
>> would deeply appreciate any help that could point me into the right
>> direction to code this.
>>
>> Mac OS X Server 10.4x, FileMaker Server Advanced 8x, PHP 4.x
>>
>> Thanks,
>> Peter
>>
>> Peter Bates
>> Microcomputer Network Specialist
>> Automated Services
>> St. Joseph County Public Library
>> 304 S. Main St.
>> South Bend, IN 46601
>> voice: (574) 282-4610
>> fax: (574) 282-4662
>> e-mail: p.bates at sjcpl.org <mailto:p.bates at sjcpl.org>
>> www: http:/www.libraryforlife.org
>> library catalog:
>> http://www.libraryforlife.org/onlinecatalog/onlinecatalog.html
>>
>>
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> <winmail.dat>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list