Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > 21a7b93ce3304d60a61548b90068c342 > files > 12

webgrep-2.9-2mdk.i586.rpm

Here are 2 secure cgi-bin front-end implementations for the
webfgrep search engine and a cgi-bin to check html pages for
syntax error and broken links (wchck).

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

wchck -- a cgi interface to check html pages for syntax errors
         and broken links. At the top of this wchck file you find
         further explantions. 

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 websearch 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