Request validation exit point: Client and server

The Request Validation exit points can be used to restrict operations which can be performed by FTP users. Request validation exit points are provided by both the FTP client and server; to restrict both FTP client and FTP server access, exit programs must be added to both exit points.

Tip: Because both the FTP client and server exit points share the same exit point format, you can write a single program to handle both.

If you implement anonymous FTP, write your FTP Server Request Validation exit program to restrict anonymous FTP users to retrieve subcommands only, and never allow anonymous users to execute CL commands.

What your program should include

Allowed and rejected commands

The FTP request validation exit program gives you control over whether to accept or reject an operation. Decisions made by exit programs are in addition to any validation that is performed by the FTP client or FTP server application. The FTP client or server application calls the exit program registered for that application each time it processes one of these requests:

You might want to set value -1 of parameter 8 (Allow operation) in the VRLQ0100 exit point format to always and unconditionally reject a command.

Is there an exit program time-out feature?

There is no time-out for FTP exit programs. If the exit program has an error or exception that it cannot handle, the FTP server will stop the session.

Example programs

Example programs are available to help you set up anonymous FTP on your server. These examples are for illustration purposes. They do not contain all the features to run on a production system. Use these samples as a starting point to build your own programs. By copying portions of the code from the samples, you can add them to programs that you write yourself. Run the sample programs on a system other than your production system.

Related concepts
Manage access using File Transfer Protocol exit programs
Related reference
Write exit programs for anonymous File Transfer Protocol