Discussion in 'BlackHat Lounge' started by element94, May 8, 2008.
Is there a way to make a page redirect to a random url from several given ?
Never mind i figured it out :
var urls = new Array("http://www.url1.com/", "http://www.url2.com/");
window.location = urls[Math.floor(urls.length*Math.random())];
var temp = setInterval("redirect()", 3000);
I'd rather do it in php, with meta refresh :
//Add as many urls as you want this way
echo "<html><head><meta http-equiv='refresh' content='0;url=".$redirect."'></head><body></body></html>";
hope this helps
Thanks for this one. Is there a way to show google.com or whatever as ref url ?
I'm not sure whether that would be possible or not to change the ref url. Anyway I'm sorry I have no idea how you could do this...
the referer is sent to server by BROWSER not page, so you need something like this: hxxps://addons.mozilla.0rg/en-US/firefox/addon/4513
Using that code above from Zak_A above my browser gets stuck in an endless loop. I am running php4 I believe, can anyone help plz?
If you are using links yes, stuffing images, no.
I think (please correct me if i;m wrong) there was a typo in Zak's code,
and it should have been
but in any case, i'm still getting this error:
[h=1]Not Found[/h] The requested URL /.$redirect. was not found on this server.
- the link i was placing is a full url to a different website
you are wrong
it is just a value he set
I'm sure someone already told him that 5 years ago.
Separate names with a comma.