Manage Learn to apply best practices and optimize your operations.

LotusScript Code To Prevent Users from Using ?Openagent

The following piece of LotusScript code at the start of the agent will prevent users from invoking the ?OpenAgent action URL directly.


Set session = New NotesSession
Set docContext = session.DocumentContext
REM -------------------------------------
REM Don?t allow invocation of this agent from just any HTTP
REM Referrer. The referrer must be from our server.
REM --------------------------------------
If Not(Instr(1, Ucase(docContext.HTTP_Referer(0)),
Ucase(docContext.Server_Name(0))) > 0) And _
Not(Instr(1, Ucase(docContext.HTTP_Referer(0)),
Ucase(docContext.HTTP_HOST(0))) > 0) Then
Print {<HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY>}
Print {<H1>Error</H1>Unauthorized Exception<P><HR>}
Print {</BODY></HTML>}
Exit Sub
End If

Dig Deeper on Domino Resources - Part 6

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close