Changes for version 0.005.0 - 2026-12-04
- Incompatible changes
- The contact page sends mail only for a POST of a form with a CSRF token; a link to ?person=NAME no longer sends anything. Add the form in the example's index.tmpl to your own, and set security.csrf.secret.
- Templates are given cart as a hash of the cookie's entries that have numeric quantities, not as the cookie's text.
- A user agent that contains the name of a listed robot is refused, not only one that equals it.
- Environment values of "0" now override the configuration.
- A page's server_directory argument, which nothing read, is no longer given.
- File::HomeDir and Sys::Uptime are no longer prerequisites. A site whose own modules use them must install them.
- The default allow_ips is now only 127.0.0.1; it also held a public address. A site that relied on that must list it in allow_ips.
- The index page's placeholder login (action=login, with its session cookie and redirect to an admin page) has been removed. Its credentials were fixed in the code. String::Random is no longer needed.
- Perl 5.26 is now the minimum. 5.20 was declared, but the dependencies do not install on it.
- Enhancements
- Web::VWF::Display has csrf_token and csrf_valid, and templates csrf_token.
- Web::VWF::Throttle::over_limit, used by both of the throttles.
- The example site has a planets page, which reads a flat file with Web::VWF::Display::table. That module takes the site's configuration as config, rather than always reading it from disc.
- Added SECURITY.md.
- The example configuration shows the allow_ips setting.
- The directory and config_directory arguments of new() can be set at run time with Object::Configure.
- Documented the response codes and the syslog setting, and added the missing SYNOPSIS, DESCRIPTION and VERSION sections.
- Bug Fixes
- With a memory_cache that outlives a request, such as File, one client could be served a page made for another language, kind of client or set of parameters.
- The limit of two contact messages for each client was never applied.
- blacklist_countries written as XML child elements, or as an empty element, stopped every request.
- Settings given to new() or in config_file did not reach the templates.
- The warning that sendmail cannot be run did not say why.
- A corrupt DKIM key lost the message instead of sending it unsigned.
- A .stderr file that could not be written turned every warning into a fatal error.
- set_cookie accepted a cookie name ending in a newline.
- The two per-address throttles counted into one total, so a client had half of throttle.max_items. They now count separately, use the backend that works on Windows, and no longer delete a store they cannot use.
- Secrets in the environment are no longer written to debug logs.
- An error in one request emptied the whole response cache.
- An unknown name on the contact page gave an empty page.
- PATH is no longer replaced on Windows, and an unwritable .stderr file no longer stops the worker starting.
- A cart cookie with a quantity that is not a number caused warnings.
- A client address written with leading zeros was not matched with DShield's.
- The licence headers of Config and Utils now say GPL2, as the rest does.
- Web::VWF::Display::table's fetch(key => 0) returned every row.
- Declare LWP::Protocol::https, without which reCAPTCHA answers cannot be checked and the DShield feed cannot be fetched.
- A syslog setting with a host or a path but no type never sent a record, and one that was a plain true value stopped the request.
- A log that cannot be written is reported once, not on every request.
- Declare the core modules that the tests use.
- The config_directory, config_file and config arguments of new() were ignored when serving requests. A site that passes them will now have them used.
- A request is no longer lost when the syslog daemon cannot be reached: the failure to mirror the access record to syslog is trapped, and logged once until a write succeeds again, rather than on every request.
- An access record with wide characters could not be written to syslog, and writing it to vwf.log warned "Wide character in print". Its values are now written to both as UTF-8.
Modules
Versatile Web Framework - easily build a website to support different languages and client platforms
The last access check a request must pass
Country-based access control for VWF pages
Check a Google reCAPTCHA answer
Site-independent configuration file for the Versatile Web Framework
The database behind the index page
The access log, as a database
The base class of the pages
The page that asks a client to prove it is a person
The home page, with its contact form
The status page: the server and its traffic
Read a small flat file for a page or its template
send mail through sendmail(1), DKIM signed when configured
persistent request throttling that works on Windows too
Assorted subroutines for VWF
Provides
in lib/Web/VWF/Throttle.pm
Examples
- example/cgi-bin/page.fcgi
- example/conf/default
- example/databases/index.csv
- example/databases/planets.txt
- example/databases/states.csv
- example/templates/web/Web/VWF/Display/captcha.tmpl
- example/templates/web/Web/VWF/Display/index.tmpl
- example/templates/web/Web/VWF/Display/meta_data.tmpl
- example/templates/web/Web/VWF/Display/planets.tmpl
- example/templates/web/Web/VWF/Display/states.tmpl