![]() |
|
[Java] Random Link Generator - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] Random Link Generator (/showthread.php?tid=5819866) |
Random Link Generator - Wubix - Apr 2, 2018 Is it possible for my site to have something that generates a random link each time the page is refreshed, an example: User visits website and in the top corner it says "Your referral link: http//XXX.XXX\ref=28e93" but it actually just is a redirection link to the homepage. So a fake affiliate link. Then when they refresh it generates a new one..? RE: Random Link Generator - m0noxide - Apr 2, 2018 If you don't care about the uniqueness or how secure that referral code is then you can just generate it on the page-load with javascript since it doesn't matter anyway. If you want to make it look more legit, you could generate the token easily on the server-side by just creating an array of all the characters and just randomly picking one at time up to the desired length since it doesn't matter how secure it is since again it is a fake link. RE: Random Link Generator - Wubix - Apr 2, 2018 (Apr 2, 2018 10:13 PM)m0noxide Wrote: If you don't care about the uniqueness or how secure that referral code is then you can just generate it on the page-load with javascript since it doesn't matter anyway. I have no idea how to do it RE: Random Link Generator - matt - Apr 3, 2018 (Apr 2, 2018 10:16 PM)Wubix Wrote: I have no idea how to do it you can modify the htaccess file on your apache server to do a permanent redirect to the home page, also this should be posted in the web development section not the Java subforum. |