My new game, Ball Fall (http://newgrounds.com/portal/view/278430)
, has an anti-ebaum script in it and alot of people wanted it.
Well here's what I've been using. Just stick the code on the first frame of your game or movie.
stop();
//Block Right Clicking
Stage.showMenu= false;
this_url = _root._url;
// list of blocked urls.
bad_urls = new Array("www.ebaumsworld.com", "ebaumsworld.com");
// Take out the http://, and get the domain
this_url = this_url.substr(7, this_url.length);
this_url = this_url.substr(0, this_url.indexOf("/"));
var found_bad_url = false;
//Check to see if the URL is one of the bad ones
for (var i = 0; i<bad_urls.length; i++) {
if (this_url == bad_urls[i]) {
found_bad_url = true;
break;
}
}
//Change the frame if the url is the bad url
if (found_bad_url == true) {
gotoAndStop("bad");
}
Then make a frame with what you want it to show if its hosted on ebaums world (maybe goatse?) and call the frame "bad". That's it!