469,299 Members | 2,073 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,299 developers. It's quick & easy.

popup blocker code

How do pop-up blocker programs work? Do they intercept http transactions and
strip-out window.open() commands? Is there a single methodology?

Thanks
Jul 20 '05 #1
9 6633
In article <6a**************************@msgid.meganewsserver s.com>,
wp*********@hotmail.com says...
How do pop-up blocker programs work? Do they intercept http transactions and
strip-out window.open() commands?
Possibly.
Is there a single methodology?


No. Mine (PopUp Killer) scans for browser windows and reads the titles
- no proxy involved. You won't be able to beat them.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #2
Bill M. wrote:
How do pop-up blocker programs work? Do they intercept http transactions and
strip-out window.open() commands? Is there a single methodology?

Thanks

They use various methods. For example, my browser blocks pop ups
automatically (can be turned off, of course). If I click on a link which
causes a pop up window, that is OK. But if the site initiates a pop up,
it is killed.

Jul 20 '05 #3
> Does that help you any?

Well, some good reply's. I would like to either grow my own popup blocker or
use squid to do it. Using squid to do this is kind of an
after-the-post-thought but it occurs to me that since I'm already using
Linux squid for my Windoz clients, that would be the place to do this.

In terms of growing my own (Windoz app), I think I was actually looking for
more technical details/best practice on how to do this. I wasn't very clear
about what I was looking for. My bad.
Thanks,

Bill
Jul 20 '05 #4
>
Well, some good reply's. I would like to either grow my own popup blocker or use squid to do it. Using squid to do this is kind of an
after-the-post-thought but it occurs to me that since I'm already using
Linux squid for my Windoz clients, that would be the place to do this.

http://phroggy.com/bannerfilter/

Looks like what I want.
Jul 20 '05 #5

"Bill M." <wp*********@hotmail.com> wrote in message
news:6a**************************@msgid.meganewsse rvers.com...
How do pop-up blocker programs work? Do they intercept http transactions and strip-out window.open() commands? Is there a single methodology?

Thanks


I have Internet Security 2003... It has a feature to block popups and
adverts... It is very successful, but not 100% successful.

I did some checks... note, I am a javascript newbie but I am a techie (with
several years of linux/unix and some windoze support behind me) so I think I
got a good distance...

First... part of the Firewall that comes with Internet Security 2003 and its
efforts to prevent popups is it scans all html as you surf and if it finds
reference to "banner" or "popup" it can end up either removing the
code/reference to the function or createing a similar named function after
the original named function so as the author's original one is not
used/called.

Thus, a javascript with /banner/ in the path will not be displayed - the
same with /banner.js or /banner.jpg It has other terms also written in, and
it has various website names too (like doubleclick.net) that are
automatically ignored.

Secondly, I found that when I do a View Source of some web pages, I get code
similar to the following sprinkled in there (normally immediately after
<head>)

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>
This code turns up before </BODY>
<script language="JavaScript">
<!--

window.open = SymRealWinOpen;

//-->
</script>
I have visited http://mail.yahoo.com then did a view source and extracted
the above just as an example - I don't know if difference code is inserted
pending on what website I visit.

Does that help you any?

randelld
Jul 20 '05 #6
hi,
I want to write a program which will popup IE instances
programmatically even if there is a POPUP-BLOCKER installed.Does
anybody know how to do it??Please help..
Thanx
Dileep


Randell D. wrote:
"Bill M." <wp*********@hotmail.com> wrote in message
news:6a**************************@msgid.meganewsse rvers.com...
How do pop-up blocker programs work? Do they intercept http
transactions and
strip-out window.open() commands? Is there a single methodology?

Thanks
I have Internet Security 2003... It has a feature to block popups and
adverts... It is very successful, but not 100% successful.

I did some checks... note, I am a javascript newbie but I am a techie

(with several years of linux/unix and some windoze support behind me) so I think I got a good distance...

First... part of the Firewall that comes with Internet Security 2003 and its efforts to prevent popups is it scans all html as you surf and if it finds reference to "banner" or "popup" it can end up either removing the
code/reference to the function or createing a similar named function after the original named function so as the author's original one is not
used/called.

Thus, a javascript with /banner/ in the path will not be displayed - the same with /banner.js or /banner.jpg It has other terms also written in, and it has various website names too (like doubleclick.net) that are
automatically ignored.

Secondly, I found that when I do a View Source of some web pages, I get code similar to the following sprinkled in there (normally immediately after <head>)

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>
This code turns up before </BODY>
<script language="JavaScript">
<!--

window.open = SymRealWinOpen;

//-->
</script>
I have visited http://mail.yahoo.com then did a view source and extracted the above just as an example - I don't know if difference code is inserted pending on what website I visit.

Does that help you any?

randelld


Jul 23 '05 #7
hi,
I want to write a program which will popup IE instances
programmatically even if there is a POPUP-BLOCKER installed.Does
anybody know how to do it??Please help..
Thanx
Dileep


Randell D. wrote:
"Bill M." <wp*********@hotmail.com> wrote in message
news:6a**************************@msgid.meganewsse rvers.com...
How do pop-up blocker programs work? Do they intercept http
transactions and
strip-out window.open() commands? Is there a single methodology?

Thanks
I have Internet Security 2003... It has a feature to block popups and
adverts... It is very successful, but not 100% successful.

I did some checks... note, I am a javascript newbie but I am a techie

(with several years of linux/unix and some windoze support behind me) so I think I got a good distance...

First... part of the Firewall that comes with Internet Security 2003 and its efforts to prevent popups is it scans all html as you surf and if it finds reference to "banner" or "popup" it can end up either removing the
code/reference to the function or createing a similar named function after the original named function so as the author's original one is not
used/called.

Thus, a javascript with /banner/ in the path will not be displayed - the same with /banner.js or /banner.jpg It has other terms also written in, and it has various website names too (like doubleclick.net) that are
automatically ignored.

Secondly, I found that when I do a View Source of some web pages, I get code similar to the following sprinkled in there (normally immediately after <head>)

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>
This code turns up before </BODY>
<script language="JavaScript">
<!--

window.open = SymRealWinOpen;

//-->
</script>
I have visited http://mail.yahoo.com then did a view source and extracted the above just as an example - I don't know if difference code is inserted pending on what website I visit.

Does that help you any?

randelld


Jul 23 '05 #8
hi,
I want to write a program which will popup IE instances
programmatically even if there is a POPUP-BLOCKER installed.Does
anybody know how to do it??Please help..
Thanx
Dileep


Randell D. wrote:
"Bill M." <wp*********@hotmail.com> wrote in message
news:6a**************************@msgid.meganewsse rvers.com...
How do pop-up blocker programs work? Do they intercept http
transactions and
strip-out window.open() commands? Is there a single methodology?

Thanks
I have Internet Security 2003... It has a feature to block popups and
adverts... It is very successful, but not 100% successful.

I did some checks... note, I am a javascript newbie but I am a techie

(with several years of linux/unix and some windoze support behind me) so I think I got a good distance...

First... part of the Firewall that comes with Internet Security 2003 and its efforts to prevent popups is it scans all html as you surf and if it finds reference to "banner" or "popup" it can end up either removing the
code/reference to the function or createing a similar named function after the original named function so as the author's original one is not
used/called.

Thus, a javascript with /banner/ in the path will not be displayed - the same with /banner.js or /banner.jpg It has other terms also written in, and it has various website names too (like doubleclick.net) that are
automatically ignored.

Secondly, I found that when I do a View Source of some web pages, I get code similar to the following sprinkled in there (normally immediately after <head>)

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>
This code turns up before </BODY>
<script language="JavaScript">
<!--

window.open = SymRealWinOpen;

//-->
</script>
I have visited http://mail.yahoo.com then did a view source and extracted the above just as an example - I don't know if difference code is inserted pending on what website I visit.

Does that help you any?

randelld


Jul 23 '05 #9
fr*************@yahoo.com wrote:
hi,
I want to write a program which will popup IE instances
programmatically even if there is a POPUP-BLOCKER installed.Does
anybody know how to do it??Please help..


And if IE isn't installed on the machine?

But you and ever other spammer on the web wants to know how to open a
popup window even if a popup blocker is installed.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by dave yan | last post: by
38 posts views Thread by Shaun McKinnon | last post: by
10 posts views Thread by Agony.COM | last post: by
2 posts views Thread by QA | last post: by
26 posts views Thread by Raffi | last post: by
9 posts views Thread by Rathtap | last post: by
7 posts views Thread by anthony.turcotte | last post: by
7 posts views Thread by rob c | last post: by
4 posts views Thread by vickeybird | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.