Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,038 members, 7,956,867 topics. Date: Monday, 23 September 2024 at 09:05 PM |
Nairaland Forum / Science/Technology / Programming / Programmers, How Can I Do This? (1274 Views)
Programmers How Can I Achieve This / Programmers, How Do You Cope With Generator Noise In Your Area? / Programmers how much do you earn monthly? (2) (3) (4)
Programmers, How Can I Do This? by Genes1s: 7:53pm On May 23, 2020 |
I am building an online Ebook website. Here is what I want. Customer shops different books on website, After that, they pay, then they get the required file link to download. What I am confused about is the best way to give the book download link for each purchased book to the buyer, and this download link won't be reusable by another customer aside the intended buyer. Please how can I achieve this? A simple algorithm will do. Thanks |
Re: Programmers, How Can I Do This? by Nobody: 9:16pm On May 23, 2020 |
Add me on whatsapp let talk business...07082862170 |
Re: Programmers, How Can I Do This? by Nelx(m): 10:12pm On May 23, 2020 |
After the person has paid for the book, you can perhaps send the download link to their mail. That's what most of them do. |
Re: Programmers, How Can I Do This? by Genes1s: 11:41pm On May 23, 2020 |
Nelx:I have actually thought of this, but what happens when the customer shares the link online for free? It means everyone now have access to download the file. |
Re: Programmers, How Can I Do This? by ToyinDipo(m): 2:05am On May 24, 2020 |
Genes1s:If the site has login feature, the download link will have a code(part of the url), this code will be linked with the customer, when the customer hits the url, the method or function that handles the download validates the code in the url, against the logged in user. If there is no login feature, there is a way to handle it also, but I don't know it yet, cheers 1 Like |
Re: Programmers, How Can I Do This? by vezycash(m): 2:56am On May 24, 2020 |
Take the advice above and require login to download. After that, worry no more. Cos users can just email the book to someone else. Channel the worry and your energy into how you can get more customers. 1 Like |
Re: Programmers, How Can I Do This? by Nelx(m): 9:06am On May 24, 2020 |
Genes1s:You can validate download link with email username. Whosoever wants ur book will provide his email during payment details, you store that email somewhere, then when you send the download link to his mail, you validate that download with his own mail. After download is complete or after a particular session you delete the email. That way even if the share the link with someone else, the person can't download it because his mail isn't valid, if he uses a previous validated email, it still won't work(you can ever throw an exception saying 'this email has been used b4') My 2cents bro Cheers |
Re: Programmers, How Can I Do This? by bankybobo11: 9:42am On May 24, 2020 |
Please I'm looking for internship opportunities as a Developer. I'm very good with vue and I'm learning Angular 9 with speed. Help a brother please. I built this from scratch with vuejs. vuecommercial.netlify.app I can be contacted on zero 7 zer Thanks 1 Like |
Re: Programmers, How Can I Do This? by Genes1s: 2:24pm On May 24, 2020 |
Hi guys, thank you all for the contributions. I kinda thought of a temporary solution to it pending when I will come up with a permanent fix. Here is it, >I send a random gen key to user (also saved in database). >User enters the key into book download page >System validates authenticity of key >If valid, check if no of use is less 3 >If yes, enable a download button for the book >on successful download - decrement key value by 1 Else - print appreciate msg. |
Re: Programmers, How Can I Do This? by ensodev(m): 2:39pm On May 24, 2020 |
To code this in a way that ones the real owner use the link the link will not be active again for another user even for the right owner of the link is possible. It comes with it ups and downs. The ups are you will be able to create a link for a single user and also for a one time use The down side is, rightful owner should have access to his book even if he loose his own copy The only way to achieve this is to create a system and my recommended system is the following The link should be generated dynamically and only the owner should be able to use the link. Ones the link is used automatically the link should be revoke and another link should be generated which should not be send to the rightful owner email again but should be accessable on dashboard to the rightful owner on your site if in future he needs it If the user request to download this PDF again another valid link should be sent to the user email pointing to the PDF just like the first way and ones it downloaded the link should revoke Now, you can restrict user download time 3, and if a user is downloading same file more than 3 times you can tender a kyc form to be filled and also send a customised PDF for a legal action to be taken if the user bridge the contract and agreement, also if you use python you can even generate this PDF with a unique password at all time, with python lots of customization can be down. I believe other scripting language can do anything but I think python make it fast and easier. If you really need help to implement this I can do it in php and I will be willing to help you out Contact me on pillersmaker@pillersmaker.com |
Re: Programmers, How Can I Do This? by Taofeekdboy(m): 10:50pm On May 24, 2020 |
There are many ways to do it; First option might involve token, you can use jwt token to do that, in which after the user or owner pay for the book, then you generate the token and store it in the database, then everytime the user log in, the token will be retrieved and you can use that to prevent the route or page of the ebook download. Second option is about using user details in which you setup a variable for every user and that variable will be dynamic based on if the user has purchased the book or not. Most options also depends on which tools you are using tho. |
Re: Programmers, How Can I Do This? by Genes1s: 12:28pm On May 28, 2020 |
Hi guys, really appreciate ur inputs. I just used a php force download and made use of javavoid(0) to make the download link invisible to even the intended buyer. |
Re: Programmers, How Can I Do This? by Badilstical(m): 2:02pm On May 28, 2020 |
Genes1s:Is as simple as this: Get the intending buyer email, then store it on the db, send a dynamic token, download link, if the user sends that link to another user the user have supply his data(email etc) , then you validate if the user is not bought you book or is not in your db, send him a payment page . That's where to catch the thief |
Re: Programmers, How Can I Do This? by bet9ja(m): 10:52pm On May 28, 2020 |
bankybobo11: View my website and send me a direct message... I maybe transfer work for you. |
Re: Programmers, How Can I Do This? by bankybobo11: 4:58pm On Jun 06, 2020 |
bet9ja: Okay bros. Thanks |
(1) (Reply)
Z-library Is Back / For The Best Code Monkeys - Crack This And Get A Chance To Join Uk Intelligence / Clean Java
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 31 |