Home | Q&A | Learning Center | Documentation | Members | Download | Related Products | Site Map | Search | Contact Us

WebKeystone Example 4: Creating a form with a rotating banner

Banners may be used as advertising space on websites. Many low-end websites support "static" banners, which means that the webmaster must manually modify the website to change the banner. Other sites display a different banner each time you access them; these sites are using "rotating" banners.

This example shows how to create a rotating banner using WebKeystone. It assumes that your site has "Server Side Include" support (ask your hosting company if you're not sure). Considerations on the security implications of SSI are described below.

The Form

Here is one of three rotating banners:

Reload (or refresh) this page several times to see the different banners. You may see the same banner or a different one each time you reload.

The Files

Security Considerations

Some webserver administrators may be reluctant to enable SSI for customer pages because of security concerns. It is often believed that enabling SSI will allow customers to execute any command on the system. This is one of many reasons WebKeystone was developed, so we would not advocate exposing your system in this way.

There is a way of configuring Apache web servers to support SSI without compromising security. This example configuration illustrates how to enable SSI while still providing security:

<Directory /home/joeblogg/html> 
Options IncludesNoExec 
</Directory>

The "IncludesNoExec" statement will allow SSI but not allow any commands to be executed that are inaccessible from the web.

| Previous Example | Next Example | Table of Contents |

Updated 15-May-01

Home | Q&A | Learning Center | Documentation | Members | Download | Related Products | Site Map | Search | Contact Us

WebKeystone is a product of Townsend Software, Inc. ©1998 - 2001 Townsend Software, Inc. All rights reserved.