we need a plugin or code. which work for download link expire after some hour.
like when anyone click on download link its generate a string and its save to db after 24 hour this download link string expire . if anyone come again on same download link its redirect to post area.
please tell me how to setup on wordpress
Read more here: How to make temporary expiring link for a downloadable file