I generate an email address on a website in javascript to make it a little bit more difficult for scrapers. Basically I have a few variables and then jumble them back together with javascript.
var a = new Array('test','example','.com','@');
document.write(a[0]+a[3]+a[1]+a[2]);
Two questions:
- Is this effective?
- Someone told me it is dangerous, because "document.write" is insecure? How could this be exploited?