Here are 2 secure cgi-bin front-end implementations for the
webfgrep search engine. 

I recommend to edit these files and adapt them to your needs.

websearch -- does not use the -s option of webfgrep and it is potentially 
             easier to write a insecure cgi-bin. I recommend this
             program more to the experienced perl programmer. Its advantage
             over websearch_s is that this version displays the results already
             while the search is still running. This gives the user faster
             feedback and gives him/her the impression that the program
             is faster.

websearch_s -- User input never goes to the shell. This is a version that is
               easier to keep secure. I recommend it to the beginner in
               cgi-bin programming.

Note: Both programs are written such that they search the web-site to a 
      depth of 2 directory levels for html files (*.html */*.html).
      You might want to replace this with `find . -name '*.htm*' -print`
      I do not recommend to use webfgrep for sites with deply nested
      directories and a lot of html. webfgrep is used best to search about 
      50 web-pages with an average size of 20k on 2 directory levels.
      Uses htdig, glimpse or other engines if you maintain a bigger site. 
      webfgrep is for small sites and has very low maintenance costs as no
      additional database is required.
 
Regards
 Guido

