Benim sunucuda depolanan bazı pdf dosyaları var ve ben sadece ücretli olan bir kişinin belirli bir pdf indirmek erişmesini izin vermek istiyorsunuz diyelim.
Yani bir örnek için, Diyelim ki e-kitap bir grup var diyelim. Onun hesabı söz konusu kitabın için doğru kimlik bilgileri içeriyorsa, bir kullanıcı e-kitap A indirmek mümkün olacak tek yoludur.
Bunu gerçekleştirmek için en iyi yolu nedir?
Fikrimi nasıl geliştirileceği konusunda herhangi bir fikir / tavsiye büyük takdir!
Benim geçerli fikir:
Bir kullanıcı bir sipariş
Upon success, a new folder would be created by their /account_num/order_id/ A copy of the particular file would be stored in this directory
- Have php generate an .htaccess that would only allow access from a url that contains a random hash embedded into it.
- The only way a user would be able to access this random hashed page is if they are signed in as the right user, and the hash matches up with the hash stored in the database, otherwise they are redirected to home page.