Version 1.76.0

Version

Security update: share links with a download limit can no longer be downloaded again and again beyond that limit. The inspector and the audits now say “Blocked for everyone” for files Medifence never delivers.

  • A share link’s download limit can no longer be bypassed. Some requests were never counted, so that a video seek or a cache check would not spend a link, which also let a client download a “valid for one download” link as often as it liked. Now the first request a browser makes for a link is counted whatever it carries, and only the ranges and revalidations that follow it from the same browser within an hour are free. That browser is recognised by a short-lived signed cookie (medifence_view_…, HttpOnly, never outliving the link) holding no information about the visitor. A client that keeps no cookies has every request counted.
  • The file inspector, wp medifence inspect, the media list, the REST field and the audits now report the files the delivery handler refuses — .htaccess and other dot files, PHP source, and files in a folder whose own .htaccess denies all access — as “Blocked for everyone”, with the new reasons refused_hidden, refused_script and refused_closed (for a closed folder, the folder that closes it is the matched value). They used to be judged by the protection scope, so such a file read “Protected: it is inside the protected scope”, or even “Served to everyone” when it lay outside the protected paths. The uploads scan no longer lists them as public, and the embedded-file scan counts them as blocked. Files that are not refused are reported exactly as before.
  • Fixed: a request for the end of a file (Range: bytes=-500) now receives the last 500 bytes; it used to receive the first 501. A Range header with several ranges, another unit, or a last byte before the first is now ignored and the whole file is sent, as RFC 9110 requires, instead of answering with only the first range or with 416.
  • Fixed: a resumed download whose If-Range no longer matches the file — the file was replaced in between — now receives the whole file instead of a part that would be stitched onto the old copy.
  • The CSV exports (audit, access log, share links) also escape values that begin with a tab or a carriage return, which some spreadsheets strip before reading a formula. The CSV escape character is now passed explicitly, so PHP 8.4 raises no deprecation notice; the output is unchanged.

📦 Download Medifence 1.76.0 (zip)

Copied title and URL