Improve security - close tasks folder for web (issue #1852)