<html><body>
<div style="font-size: 13.3333px; font-family: Tahoma; color: rgb(0, 0, 0); font-weight: 400; font-style: normal;"> </div>

<div style="font-size: 13.3333px; font-family: Tahoma; color: rgb(0, 0, 0); font-weight: 400; font-style: normal;"><span style="font-size:12pt;">Muchas gracias Guilda, genial la solucion,  probada y funcionando.</span></div>

<div style="font-size: 13.3333px; font-family: Tahoma; color: rgb(0, 0, 0); font-weight: 400; font-style: normal;"> </div>

<div style="font-size: 16px; font-family: Tahoma; color: rgb(0, 0, 0); font-weight: 400; font-style: normal;">
<div><span style="font-size:12pt;">Hay otra solucion que encontre pero el problema es que es propia solamente para los que tenemos ABCD montado en un servidor windows bajo IIS  como es mi caso.</span> Consiste en modificar desde IIS las propiedades en el apartado de seguridad de directorios, el directorio en donde tengo guardados los archivos pdf que quiero restringir, esta opcion permite conceder o denegar acceso al recurso, usando las direcciones IP o los nombres de dominio.</div>

<div> </div>

<div>Saludos</div>

<blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">-----Original Message-----<br />
From: Guilda Ascencio <gascencio@msinfo.info><br />
To: Jesús Melgar Calderón <jesus.melgar@inin.gob.mx><br />
Cc: Lista Isis <isis-users@iccisis.org><br />
Date: Wed, 11 Nov 2015 14:49:58 -0500<br />
Subject: Re: [Isis-users] Como validar IPs ?<br />
 
<div dir="ltr">
<div>
<div>
<div>Hola Jesús<br />
 </div>
En <a href="http://abcdwiki.net/wiki/es/index.php?title=IAH_Detectar_el_IP_desde_el_cual_se_accede_a_la_consulta_de_la_base_de_datos">http://abcdwiki.net/wiki/es/index.php?title=IAH_Detectar_el_IP_desde_el_cual_se_accede_a_la_consulta_de_la_base_de_datos</a> coloqué una posible solución a tu requerimiento<br />
 </div>
Saludos<br />
 </div>
Guilda</div>

<div class="gmail_extra"> 
<div class="gmail_quote">2015-11-11 11:52 GMT-05:00 Jesús Melgar Calderón <span dir="ltr"><<a href="mailto:jesus.melgar@inin.gob.mx" target="_blank">jesus.melgar@inin.gob.mx</a>></span>:

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal"> </div>

<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal">
<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal">Estimados listeros</div>

<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal"> </div>

<div>En mi OPAC de ABCD  como puedo hacer para desplegar un campo especifico dependiendo de si la consulta al</div>

<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal">catalogo se hace desde un determinado rango de direcciones ip. ?</div>

<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal"> </div>

<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal">Es decir, tengo el archivo lista.pft que simplemente despliega algunos campos en forma de tabla y esta ubicado en C:\Inetpub\wwwroot\ABCD\www\bases\pcinin\pfts\es</div>

<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal"> </div>

<div style="font-family:Tahoma;color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal">
<div>mhl,'<TABLE WIDTH="100%" BORDER=0>'<br />
mhl,'<TR><TD WIDTH="100%"><strong>Record N. ',mfn(1),'</strong></TD></TR></TABLE>'<br />
mhl,'<TABLE WIDTH="100%" BORDER>'<br />
if p(v245) then<br />
  '<TR><TD WIDTH="30%"><I>Titulo: </I></TD><TD>',v245+|; |'</TD></TR>',fi,/<br />
if p(v222) then '<TR><TD WIDTH="30%"><I>Titulo Revista o libro: </I></TD><TD>',v222+|; |'</TD></TR>',fi,/<br />
if p(v100) then '<TR><TD WIDTH="30%"><I>Autor: </I></TD><TD>',v100+|; |'</TD></TR>',fi,/<br />
if p(v27) then '<TR><TD WIDTH="30%"><I>Clave de Identificación: </I></TD><TD>',v27+|; |'</TD></TR>',fi,/<br />
if p(v111) then '<TR><TD WIDTH="30%"><I>Nombre del Congreso: </I></TD><TD>',v111+|; |'</TD></TR>',fi,/<br />
if p(v263) then '<TR><TD WIDTH="30%"><I>Año de Publicación: </I></TD><TD>',v263+|; |'</TD></TR>',fi,/<br />
if p(v506) then '<TR><TD WIDTH="30%"><I>Restricción de acceso: </I></TD><TD>',v506+|; |'</TD></TR>',fi,/</div>

<div>'</TABLE><P>'<br />
if v506<>'CONFIDENCIAL' AND V506<>'RESERVADO' then<br />
if v856<>'<a href="http://abcd.inin.gob.mx:9090/site/pdfs/" target="_blank">http://abcd.inin.gob.mx:9090/site/pdfs/</a>' then<br />
'<a href="'v856'">Texto Completo</a>'<br />
fi,/<br />
fi,/</div>

<div> </div>

<div>Si  por ejemplo la consulta al catalogo se hace desde el rango de ips  128.29.29.1   a la 128.29.29.30 quiero que el campo v856 se despliegue</div>

<div> </div>

<div>se me ocurre una funcion en php mas o menos asi. </div>

<div>
<pre>
function restringirRango()
{
    $ipCliente = obtenerDireccionIP();

    if(substr($ipCliente, 0, 8 ) == "150.214.")
    {
        return true;
    }
    else
    {
        header('location: <a href="http://direccion_envio_salida" target="_blank">http://direccion_envio_salida</a>');
        exit;
    }
}</pre>

<div>Pero Guilda me comenta que el problema es que con el iAH no tenemos acceso a comandos php.</div>

<div> </div>

<div>Alguna sugerencia?</div>

<div> </div>
</div>

<div>
<div>Saludos</div>

<div>Jesus Melgar</div>

<div>Instituto Nacional de Investigaciones Nucleares.</div>

<div>Mexico.</div>
</div>
</div>
</div>
</div>
<br />
_______________________________________________<br />
isis-users mailing list<br />
<a href="mailto:isis-users@iccisis.org">isis-users@iccisis.org</a><br />
To manage your own subscription options go to: <a href="http://lists.iccisis.org/listinfo/isis-users" rel="noreferrer" target="_blank">http://lists.iccisis.org/listinfo/isis-users</a><br />
Or contact Henk Rutten: <a href="mailto:hlrutten@xs4all.nl">hlrutten@xs4all.nl</a><br />
 </blockquote>
</div>
</div>
</blockquote>
</div>
</body></html>