How to prevent direct URL access to attachment files?

Access Restricted! You are not download manager pro user or your support forum access period is expired!