<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.ext-9.eprints-hosting.org/w/index.php?action=history&amp;feed=atom&amp;title=Security.pl</id>
	<title>Security.pl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?action=history&amp;feed=atom&amp;title=Security.pl"/>
	<link rel="alternate" type="text/html" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?title=Security.pl&amp;action=history"/>
	<updated>2026-05-10T21:00:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.ext-9.eprints-hosting.org/w/index.php?title=Security.pl&amp;diff=14283&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added page about config file</title>
		<link rel="alternate" type="text/html" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?title=Security.pl&amp;diff=14283&amp;oldid=prev"/>
		<updated>2022-01-23T16:27:54Z</updated>

		<summary type="html">&lt;p&gt;Added page about config file&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{dirs}}&lt;br /&gt;
{{cfgd}}&lt;br /&gt;
&lt;br /&gt;
This file contains configuration functions for specifying whether a general request or a particular logged in user can access a document.  These functions can return one of three different values:&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;ALLOW&amp;#039;&amp;#039;&amp;#039; - Access to the document is allowed&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;DENY&amp;#039;&amp;#039;&amp;#039; - Access to the document is not allowed&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;USER&amp;#039;&amp;#039;&amp;#039; - Access to the document is allowed if the logged in user is permitted access.  Redirect to login if no user is logged in.&lt;br /&gt;
&lt;br /&gt;
== can_request_view_document ==&lt;br /&gt;
This function determines whether a general request can access a particular document.  The default function will do the following checks:&lt;br /&gt;
# If the document is public and the eprint is in the live archive and returns &amp;#039;&amp;#039;ALLOW&amp;#039;&amp;#039; if that is the case.&lt;br /&gt;
# If there is a &amp;quot;request a copy&amp;quot; code and if that code&amp;#039;s request is for permitting access to the document and has not expired and returns &amp;#039;&amp;#039;ALLOW&amp;#039;&amp;#039; if that is the case.&lt;br /&gt;
# If there is a &amp;quot;request a copy&amp;quot; code and coversheets is enabled and the code&amp;#039;s request is for permitted for the original document from which the coversheeted version now being accessed is generated and the request has not expired.  If this is the case &amp;#039;&amp;#039;ALLOW&amp;#039;&amp;#039; is returned.&lt;br /&gt;
If none of the criteria are meet then &amp;#039;&amp;#039;USER&amp;#039;&amp;#039; is returned.&lt;br /&gt;
&lt;br /&gt;
If the default version of this configuration file, there is commented out code for allowing authenticated access for a web crawler or permitting specific IP addresses for scenarios like on campus access.&lt;br /&gt;
&lt;br /&gt;
== can_user_view_document ==&lt;br /&gt;
This function determines if a specific user can access a particular document.  The default function will do the following:&lt;br /&gt;
# If the document is public and the eprint is in the live archive and returns &amp;#039;&amp;#039;ALLOW&amp;#039;&amp;#039; if that is the case.&lt;br /&gt;
# If the document is not public or the eprint is not in the live archive, returns &amp;#039;&amp;#039;DENY&amp;#039;&amp;#039; if the user is of type &amp;#039;&amp;#039;minuser&amp;#039;&amp;#039;&lt;br /&gt;
# Returns &amp;#039;&amp;#039;ALLOW&amp;#039;&amp;#039; if the document security is &amp;#039;&amp;#039;validuser&amp;#039;&amp;#039; and the logged in user is not of type &amp;#039;&amp;#039;minuser&amp;#039;&amp;#039; and the eprint is in the live archive.&lt;br /&gt;
# Returns &amp;#039;&amp;#039;ALLOW&amp;#039;&amp;#039; if the document security is &amp;#039;&amp;#039;staffonly&amp;#039;&amp;#039; or the eprint is not in the live archive but the user is of type &amp;#039;&amp;#039;editor&amp;#039;&amp;#039; or &amp;#039;&amp;#039;admin&amp;#039;&amp;#039; or is the depositing user.&lt;br /&gt;
If none of these criteria are met &amp;#039;&amp;#039;DENY&amp;#039;&amp;#039; is returned.&lt;/div&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
	</entry>
</feed>