[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] IP Based access on restricted documents



Hi Raja,

Yes, there should be settings for this in your archive's 
cfg/cfg.d/security.pl.? Be careful to make sure you the function to 
lookup the IP addess looks like:

my $ip = $eprint->repository->remote_ip();

As the older way of doing this breaks in recent versions of Apache and 
can make documents publicly accessible you would not otherwise intend to be.

Regards

David Newman

On 18/01/2021 13:43, RAJA VISHWA via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Dear Team,
>
> Is it possible to allow restricted document access from the 
> institution's IP?
>
> For example, any request is coming from Institution IP ranges shall we 
> allow them to access the protected content without authentication?
>
> I just try to configure the file which available? ( 
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPrints_User_Group_2015-01-13&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd6167c33cbd49f4d9d808d8bbb93b61%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637465751521352824%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XcJ87aaoXnBayJvYcxN4F0%2F45U%2Bmy5snro1v5pz6YTA%3D&reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPrints_User_Group_2015-01-13&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd6167c33cbd49f4d9d808d8bbb93b61%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637465751521352824%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=XcJ87aaoXnBayJvYcxN4F0%2F45U%2Bmy5snro1v5pz6YTA%3D&amp;reserved=0>) 
> at /opt/eprints3/archives/xxx/cfg/cfg.d/security.pl 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsecurity.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd6167c33cbd49f4d9d808d8bbb93b61%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637465751521352824%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=SBzZhXGBblD%2FU%2FxMN4roAERJAniH2xlPawbwvX%2B%2FvpU%3D&amp;reserved=0>. 
> But no luck.
>
> Could anyone help me out?
>
> Thanks,
> Raja V
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd6167c33cbd49f4d9d808d8bbb93b61%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637465751521352824%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=5YK5%2BiBylWZDqeoAqh5j9gAg30ueE%2FEg3cyAAJeKpJ8%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd6167c33cbd49f4d9d808d8bbb93b61%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637465751521352824%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=MX56txszwULB8be2k8E0qRSCVGW93ZrQr%2FoZh6jOtMU%3D&amp;reserved=0


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd6167c33cbd49f4d9d808d8bbb93b61%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637465751521352824%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ix1m%2BqCVAoUqcriKmk8dm1magPVLmTykFu%2FO8rTUDyU%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210118/e69000de/attachment-0001.html