search for books and compare prices
Tables of Contents for Web Commerce Cookbook
Chapter/Section Title
Page #
Page Count
Introduction
xiii
 
Part 1 Planning the Menu: Introducing Web Commerce
1
38
Chapter One The Landscape of Web Commerce
3
18
Making Money on the Web
4
1
The Two Models of Web Commerce
5
2
Selling Tangible Goods
6
1
Selling Content
6
1
Web Security and You
7
2
If You Don't Already Have a Web Site
9
5
Ways to Find a Good Web Host
10
1
Virtual or Nonvirtual Web Site
11
1
UNIX or NT Server
12
2
Your Choice of Web Server Software
14
3
Ways to Charge for Products or Content
17
2
Summary
19
2
Chapter Two What It Takes to Set Up a Commerce Site
21
18
Ingredient #1: The Web Server
21
4
Your Own Server
22
1
Your Server in a Server Farm
22
1
Web Hosts
22
1
Free Public Servers
23
1
Choosing the Right Server
23
1
Choosing an Operating System
24
1
Ingredient #2: Programming Capability
25
2
Ingredient #3: E-Mail Management
27
2
Ingredient #4: Access Restriction
29
1
Ingredient #5: Access Logs
30
3
Ingredient #6: Secure Transactions
33
2
Ingredient #7: Credit Card Validation
35
1
Considering a Special Purpose Server
36
1
Summary
37
2
Part 2 The First Course: Selling Tangible Goods
39
82
Chapter Three Selling Tangible Goods on the Web
41
10
The Concept of Selling Tangible Goods
42
7
Presenting and Selling Goods
44
1
Processing the Order
45
4
Summary
49
2
Chapter Four Using CGI to Process Orders
51
26
An Introduction to CGI
52
1
What You Need to Program CGI
53
1
How Web Servers and CGI Work
54
8
Displaying a Page
55
2
Text and Graphics Mix
57
1
Web Servers and CGI
58
1
Where CGI Fits In
58
1
The Path of the CGI Request
59
2
Understanding GET
61
1
Understanding POST
61
1
Understanding CGI Environment Variables
62
4
AUTH_TYPE
63
1
CONTENT_LENGTH
63
1
CONTENT_TYPE
63
1
GATEWAY_INTERFACE
63
1
HTTP_ACCEPT
63
1
HTTP_USER_AGENT
64
1
PATH_INFO
64
1
QUERY_STRING
64
1
REMOTE_ADDR
65
1
REMOTE_HOST
65
1
REMOTE_IDENT
65
1
REMOTE_USER
65
1
REQUEST_METHOD
65
1
SCRIPT_NAME
66
1
SERVER_NAME
66
1
SERVER_PORT
66
1
SERVER_PROTOCOL
66
1
SERVER_SOFTWARE
66
1
Using a Shopping Cart
66
2
Creating an Ordering Form
68
8
Web Server Security
76
1
Summary
76
1
Chapter Five Providing for Customer Interaction
77
44
E-Mail Confirmation and Autoreplies
78
4
Using MReply
79
2
More Ideas for Autoresponses
81
1
Creating a Feedback Form
82
4
Another Feedback Form Example
86
7
Mailing a Form without CGI
93
7
Creating a Community Feeling with Add-a-Link
94
6
Using Visit Counters
100
19
Using CGI to Build a Counter with JavaScript
101
6
Creating a Faux Counter Using JavaScript
107
3
A Graphical Counter in C
110
3
Creating a Lookup Database
113
2
Using grep to Search through Files
115
2
Using JavaScript to Construct a Small Database
117
2
Summary
119
2
Part 3 The Second Course: Selling Content
121
70
Chapter Six Setting Up a Pay-to-View Site
123
10
The Concept of Selling Content
123
6
Presenting and Selling Goods
125
1
Processing the Order
125
4
Authorizing Users to Paid Areas
129
1
Forms of Payment
130
1
Summary
131
2
Chapter Seven Charging Access
133
20
Using a Bank to Validate Credit Cards
133
2
Validating Credit Card Numbers without Bank Involvement
135
8
Basic Number Validation
136
3
Checksum Validation
139
4
Using a Third-Party Payment Service
143
6
Credit Cards
144
1
900 Number Billing
144
1
Debit Accounts
145
1
Hybrid Systems
145
1
Example of a Turnkey Credit Card Payment Service
146
3
A Program for Validating Redemption Codes
149
3
Summary
152
1
Chapter Eight Authorizing Users to Access Protected Content
153
18
Considering Web Security Needs
154
1
Using htaccess and htpasswd Files
154
6
Access (htaccess) File
155
3
AuthUserFile (htpasswd file)
158
1
AuthGroupFile
159
1
AuthName
159
1
Auth Type
160
1
Using an Out-of-Reach Directory
160
1
Using Multiple .htpasswd Files
161
1
Creating a .htpaswd File
162
3
Password Protection Using Blind Directories or Filenames
165
1
Using JavaScript for Password Protection
166
4
Enciphering the Filename
167
2
Asking Users for a Password to Access a Page
169
1
Summary
170
1
Chapter Nine Setting Up a Subscription Service
171
20
Ideal Newsletters for the Internet
172
1
Best Subjects for Electronic Newsletters
173
2
Protecting Your Interests with Electronic Publishing
175
2
Formatting Your Newsletter
177
1
Personalizing Newsletters
178
7
Serializing Each Copy
179
2
Stamping the Document with the Subscriber's Name
181
2
Customizing Content
183
2
Signing Up Subscribers
185
2
Web Site Publishing
187
1
Publishing Via E-Mail
187
2
Summary
189
2
Part 4 Side Dishes: Extending and Enhancing the For-Profit Site
191
78
Chapter Ten Maintaining Logs
193
22
Types of Server Logs
193
5
Using the Access Log
195
2
Using an Error Log
197
1
Using a Referrer Log
197
1
Using a Combined Log
198
1
Log File Analysis
198
9
Server Access Response Codes
207
1
Creating a Simple Access Counter
207
5
Using the Apache Server User Tracking Log
209
2
Creating a Subset Log
211
1
Summary
212
3
Chapter Eleven Web Server Security
215
20
Understanding the Security Threat
216
4
The Goodies They Want
217
1
You and Hackers
218
1
You and Malicious Users
219
1
Using an Out-of-Reach Directory for Sensitive Data
220
1
Using Unguessable Administration Passwords
221
1
Changing Passwords Frequently
222
1
Combing Logs for Common Hacker Activity
223
1
Reviewing Newsgroups for Hacker Secrets
224
1
Combing Logs for Unauthorized Access
225
1
Understanding SSL
225
4
Using Secure E-Mail
229
1
Understanding the SET Specification
230
2
General Web Site Security Issues
232
2
Check Your Site Regularly
232
1
Run Scripts from a Single Directory
233
1
Limit Access to Employees
233
1
Security of Personal Computers
233
1
Use a Firewall to Protect PCs on a Network
234
1
Summary
234
1
Chapter Twelve Tips and Tricks for Running a Commercial Site
235
34
Copyright and the Global Internet
235
5
Understanding Copyright
236
1
Protecting Your Copyright
237
1
Observing Copyright Ownership of Others
238
1
Dealing with Copyright Infringement
239
1
Minimizing Expenses
240
7
Minimizing Bandwidth Stealing
240
4
Keeping a Cap on Bandwidth
244
2
Watching Disk Usage
246
1
Increasing Income
247
2
Increasing Hits
247
1
Improving Signup Sales Ratios
247
1
Improving Attach or Add-On Sales
248
1
Understanding and Using PICS Ratings
249
2
Disincentivies to Potential Customers
251
3
Technologies You Can Use
254
13
Using Client Pull to Create Interactive Pages
254
1
Working with Java, Plugs-Ins, and ActiveX
255
6
Understanding ActiveX
261
1
Creating Animation without Scripting
262
1
Using Client-Side Image Maps
263
4
Alternatives to Your Own Commerce Site
267
1
Summary
268
1
Part 5 Just Desserts: Web Programming for Your Commerce Site
269
116
Chapter Thirteen Enhancing Forms and Documents (without Complicated Programming)
271
64
An Introduction to HTML Forms
272
14
Creating the Form
273
1
Specifying Form Controls
274
2
A Simple Form Example
276
1
Understanding Name Value Data Pairs
277
2
Using Password and Hidden Text Boxes
279
1
Using Radio Buttons
279
2
Using Check Boxes
281
1
Using Select Lists
282
3
Using Text Areas
285
1
Prevalidating Form Input with JavaScript
286
38
The Downside of Using JavaScript
287
1
Parallel Validation with CGI
287
1
Adding JavaScript to Your Form
288
2
Validating Text Boxes for Content
290
2
Validating for Length and Other Content
292
3
Using Premade Plug-and-Play Validation Routines
295
29
Enhancing Forms with Server Side Includes
324
10
Understanding SSI
324
1
Getting SSI to Work on Your Server
325
1
Adding an SSI Directive to an HTML File
326
2
Using Environment Variables with SSI
328
2
Including Files into the Main HTML Document
330
1
Running Programs Using SSI
331
2
Considerations When Using SSI
333
1
Alternatives to SSI
334
1
Summary
334
1
Chapter Fourteen Programming a Web Site
335
24
What You Need for Web Programming
336
2
An Overview of Languages for Web Programming
338
1
Ways to Run Web Programs
339
3
CGI (Common Gateway Interface)
339
1
SSI (Server Side Includes)
340
1
API (Application Programmer's Interface)
340
2
Putting Your Programs on the Server
342
7
Where to Put the Program
342
1
CGI Bins on Shared Web Servers
342
1
Using Proper Program Names
343
1
Uploading the Program File
344
1
Considering Virtual Path or Actual Path
345
1
Setting File Access Rights
346
3
Borrowing Scripts: Getting Permission to Use a Copyrighted Program
349
1
Where to Find Programs
350
8
Summary
358
1
Chapter Fifteen Free and Nearly Free Programs for Your Web Site
359
26
CGIWrap
360
1
CGI Applications
360
1
The Archive Perl CGI Scripts
361
1
LiveCounter
361
1
Web-Related Software
362
1
A Simple CGI E-Mail Handler
363
1
Access Counter
363
1
Examples of Perl CGI Scripts
364
1
CGI Example Scripts
364
1
Matt Wright's Freeware Scripts
365
3
Public Domain CGI Scripts
368
2
Web Engineer's Toolbox
370
1
Central Script Repository
370
3
CGI Scripts
370
3
CGI VRML Java Source Code
373
1
CGI.pm--a Perl 5 CGI Library
373
1
CGI Scripts
374
1
WWW Page Counts
374
1
WebForms
374
1
Forms in Perl
375
1
GLIMPSE
375
1
Microsoft Site Builder
375
1
Java Applets
375
1
Web Page Counter
376
1
CGI Scripts... To Go!!
376
6
Animators
377
1
Automated WWW Page Generators
377
1
Bulletin Boards
377
1
Chat Scripts
378
1
Comments Scripts
378
1
Counters
378
1
Dynamic Links
379
1
File Upload
379
1
Form Mail
380
1
Guestbooks
380
1
Height Width Tag Inserters
380
1
Phone Directory
381
1
Random Number Generators
381
1
Shopping Carts
381
1
Web-Based E-Mail
382
1
Web Server Access Analyzer
382
1
Summary
383
2
Appendix Using the CD-ROM
385
2
Index
387