PDA

View Full Version : Popup Blocker



pablorules1
11-17-2005, 01:12 AM
Can anyone counter this script so it doesn't work? It displays a popup and I don't want it to. Any ideas on how to null this? I've tried the regular javascript code to block popups but it won't work. Is their a javascript that allows you to disable javascript on your site?



if (document.cookie.indexOf("POPNEW3") == -1) {

var expdate = new Date((new Date()).getTime() + 86400000);

document.cookie="POPNEW3'=POP; expires=" + expdate.toGMTString() + "; path=/;";



document.write('<SCR'+'IPT LANGUAGE="JavaScript" ');
document.write(' SRC="http://a.as-us.falkag.net/dat/dlv/aslmain.js">');
document.write('</SCR');
document.write('IPT>');

document.write('<SCR'+'IPT LANGUAGE="JavaScript" ');
document.write(' SRC="http://a.as-us.falkag.net/dat/dlv/aslsubs111.js">');
document.write('</SCR');
document.write('IPT>');


Ads_kid=0;Ads_bid=0;Ads_xl=0;Ads_yl=0;Ads_xp='';Ads_yp='';Ads_opt=0;Ads_wrd='[KeyWord]';Ads_prf='';Ads_par='';Ads_cnturl='';Ads_sec=0;Ads_channels='';


document.write('<SCR'+'IPT LANGUAGE="JavaScript" ');
document.write(' SRC="http://a.as-us.falkag.net/dat/cjf/00/05/97/27.js">');
document.write('</SCR');
document.write('IPT>');


}



else if (document.cookie.indexOf("POPNEW5") == -1) {

var expdate = new Date((new Date()).getTime() + 120000);

document.cookie="POPNEW5'=POP; expires=" + expdate.toGMTString() + "; path=/;";



document.write('<SCR'+'IPT LANGUAGE="JavaScript" ');
document.write(' SRC="http://popunder.PayPopup.com/popup.php?id=amelen&pop=enter&t=1&subid=1142&blk=1">');
document.write('</SCR');
document.write('IPT>');


}

jscheuer1
11-17-2005, 04:15 AM
If you don't want the pop up, don't put the code on your page.

Wedgy
11-17-2005, 02:08 PM
He probably means it gets automatically added to his pages
because the server/host wants to have advertizements on his page
as part of his 'deal'. I have seen a way to disable most such garbage,
but the author warns that you use it at your own risk,
(i.e., if your webhost sees you are removing ads you have agreed to show,
you may have your site shut down, and be banned from using the server.)

pablorules1
11-17-2005, 11:53 PM
That's right. It's automatically placed onto my site. I don't really care what happens and I'm using at my own discrestion. and all that legal stuff...

jscheuer1
11-18-2005, 03:42 AM
One last insurmountable hurdle, I am afraid. It is against the rules of this forum to assist folks in doing this. So, my original advice stands. It was tongue in cheek to begin with. "Remove the code from your page.", means get a different host, or make other arrangements with your current one.