Made compatible with the plugin Stats, a logger that counts direct downloads of files.
Cleaned anti-download controller.