This page will not be redirected in demo mode. See console for logs.
See it in action here.
Download JS+PHP here.
It would work like this...
If 9 people were to go to redirect.com, or to have different test/exam URL for each students.
person 1 to be redirected to Test-A.html
person 2 to be redirected to Test-B.html
person 3 to be redirected to Test-C.html
person 4 to be redirected to Test-A.html
person 5 to be redirected to Test-B.html
person 6 to be redirected to Test-C.html
person 7 to be redirected to Test-A.html
person 8 to be redirected to Test-B.html
person 9 to be redirected to Test-C.html
This script is very usefull to create redirection so that user has different experiences, or in school use case, student can have different test than the other person next to them (prevent cheating).
The script is written in a way that is very user friendly, and is easy to update for someone who is not very technical.
It should be able to handle redirecting to as many sites and that should also be easy to change.
// choose either to give random page or give the page sequentially (using a callback to server)
// * Random Mode
// doesn't need to do callback (Faster, no need to install php file)
// * Sequential Mode
// The script will make a callback to server in which "last.php" is installed.
// Data is stored in encrypted txt file.
var mode = "sequential"; // accept "random" or "sequential"
var demo = "yes"; // for demo mode (debugging) set "yes", production mode set "no"
var delayedstart = 3000; // set this to "0" to get redirected right away.
var callbackurl = "https://demo.andiim3.com/redir/last.php"; // url for callback when selecting "sequential" mode
// list of pages.
var pages = [
Contact me for complete script download and customisation : me [at] andisetiawan.com.
Yes, this script is protected with obfuscation and can only be used in this domain. Right click and saving the script will be useless.