LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 05-24-2002, 11:58 AM   #1
fuxored
LQ Newbie
 
Registered: May 2002
Distribution: RedHat, Gentoo
Posts: 17

Rep: Reputation: 0
stopping pop-ups with iptables


How would I go about about using iptables to block annoying pop-up ads? I've searched around, but haven't found much info regarding this. Maybe you guys can give me a nudge in the right direction. Thanx for any info.
 
Old 05-24-2002, 12:40 PM   #2
geoffm33
Member
 
Registered: May 2002
Distribution: RH 7.3 - YDL 2.3
Posts: 63

Rep: Reputation: 15
I suppose if you wrote a rule or rules to deny outbound connections to known ad portals, then you might be successful.

Although, I think the pop-up window would still pop-up but the http request would be blocked. Just as annoying.

Some web browsers have anti-pop-up settings. Opera, Galeon I know have this feature.
 
Old 05-24-2002, 07:15 PM   #3
fuxored
LQ Newbie
 
Registered: May 2002
Distribution: RedHat, Gentoo
Posts: 17

Original Poster
Rep: Reputation: 0
Yeah I realize I can add a rule to deny each host as I find them, and have done this for several. It's a real pain to have to do add rules all the time though. Is there no way to tell iptables to only accept connections from the host you connected to?
 
Old 05-24-2002, 10:54 PM   #4
geoffm33
Member
 
Registered: May 2002
Distribution: RH 7.3 - YDL 2.3
Posts: 63

Rep: Reputation: 15
As far as I know...you are dealing with javascript for pop-ups. Your browser is making a legitimate http request even though it is against the wishes of the user. iptables cannot determine the intent of the http request. I'm afraid there isn't anything that iptables can solve.
 
Old 05-24-2002, 10:57 PM   #5
Druaga
Member
 
Registered: May 2002
Location: Canada
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
mozilla has an option to turn off unrequested pop-ups.

I use a proxy server that i got a script for which blocks hindreds of ads.
 
Old 05-26-2002, 05:37 AM   #6
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
There are apps (not sure if free) that can do just that. Go check tucows.com They can block adds, or pop-ups ..

(make sure you won't get bored afterwards, since it's good finger excercise to try to kill all pop-ups as soon as posible without closing useful windows. Kind the way like police training - hostage situations, shooting bad guys and save innocent ...
 
Old 06-16-2002, 02:52 PM   #7
qweqwe
LQ Newbie
 
Registered: Jan 2002
Posts: 13

Rep: Reputation: 0
for windows client machines inside ur network, u can panicware's popup stopper. its free and its very effective.

-qweqwe
 
Old 06-17-2002, 11:15 AM   #8
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Rep: Reputation: 15
Talking

Or simply browse the web with javascript OFF.

Hehee

When I am faced with having to search the net for some information, or some site for something, and I am hitting sites I have never been too before... I shutoff all javascript before I go venturing.

Once I am done, I turn it back on. As all my known websites that I frequent, and 'trust' do not have this bullsheet advertising technique. If I find a new site that I will attempt to trust/bookmark, I turn on javascript for that site and hit it. If its got popups out the wazzooo... I throw the site away never to return.

But thats the way I use the web... just as example.
 
Old 06-17-2002, 11:37 AM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
I saw in one of the issues of Linux Journal a perl script to eliminate pop-ups, look through archives at http://www.linuxjournal.org
 
Old 06-18-2002, 01:37 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
You can note down IPs of servers pop-ups are from and blocka them. But there's a problem - you can block too much.
 
Old 06-19-2002, 05:59 AM   #11
geoffm33
Member
 
Registered: May 2002
Distribution: RH 7.3 - YDL 2.3
Posts: 63

Rep: Reputation: 15
Quote:
You can note down IPs of servers pop-ups are from and blocka them
But I think the pop-up will still pop-up to a blocked page. The HTTP request would be blocked but the Javascript will still open the new window. Haven't tested though, just my guess.
 
Old 06-19-2002, 01:03 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
But that's you can do using iptables...
 
Old 06-19-2002, 02:07 PM   #13
koningshoed
Member
 
Registered: May 2002
Location: South Africa
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
about the window still popping up, yes, it will. about iptables having too many denies/rejects, i don't know (I only have about 5 rules for my router). There is programs that around that can stop popups (PopupStopper for one), but I would wager that the best is to turn of javascript entirely - even though some sites is just not the same without it. But iptables, I personally feel that is not an effective way of doing it.
 
Old 06-27-2002, 10:54 PM   #14
steppin_razor
LQ Newbie
 
Registered: Nov 2001
Posts: 29

Rep: Reputation: 15
Wrong tool..

The only thing you can do is completely block hosts that do nothing but serve advertisements. However, this is a poor hack at best.

What you need is either:

1. Anti-advertising features built into your browser (i.e. Netscape will do popup removal)

2. A proxy server

There are packages like WebWasher that will serve as an ad blocking proxy server.

Or... you can set up apache as a proxy server and build an advertising blocking hook in. I started this as a project, but I'm not willing to share the source because I may choose to try and commercialize it one of these days...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pop-ups in Browsers dehuszar Programming 3 01-08-2005 02:10 PM
pop ups brokenflea Slackware 1 03-25-2004 02:52 PM
Blocking Pop-ups Time Lord Linux - Software 6 09-23-2003 07:23 AM
Pop ups mylo2003 General 10 09-12-2003 03:37 PM
pop ups popcorn5714 Linux - Software 3 03-04-2003 10:30 AM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration