LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2015, 07:47 AM   #1
tukadas
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Rep: Reputation: Disabled
"oneclickads" is opening pages in chrome and Firefox as well.


HK i have elementary freya os in my lap top and suddenly oneclikads is opening different unwated sites. How to remove it ???
 
Old 07-05-2015, 11:00 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
One way of blocking the advertising sites is to edit /etc/hosts. If you add, for example, the line
127.0.0.1 ad.doubleclick.net
then every time a site tries to divert you to something at ad.doubleclick.net, your computer replaces the address with 127.0.0.1 -- that's your own computer, so the page is not found.
 
Old 07-05-2015, 11:03 PM   #3
tukadas
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
thank you for replay . i am new to linux so not sure what to do now...
this is how looks my hosts.

127.0.0.1 localhost
127.0.1.1 tovp-tuk

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
 
Old 07-06-2015, 05:24 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Personally (for FF), I use the add-ons 'NoScript' and 'Adblock Plus'.
They work a treat
 
Old 07-06-2015, 06:03 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Download & install 'Ad Block Plus' in your browser.
 
Old 07-06-2015, 10:59 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Add the necessary line at the end of the file. I gave the example
127.0.0.1 ad.doubleclick.net
or I could have used
127.0.0.1 googleadds.g.doubleclick.net
Just isolate the bit between Http:// and .net (or .com or whatever) in the offending link.

I didn't recommend an add-blocker, because I don't know what browser you have. If you're using one that offers add-blocking, that will be best. Look in the browser's menu for "Tools- addons" or "Extensions" or even just go to "Help".
 
Old 07-07-2015, 12:06 AM   #7
tukadas
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
thank u for ur advices. Adblock plus is working nicely.
Hare Krishna
 
Old 07-07-2015, 07:12 PM   #8
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Late, but my preference is for Ghostery. It blocks all trackers, not just ads.
 
Old 07-07-2015, 08:24 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
You can get a good hosts file designed to block ads here. The maintainers of the file update it periodically. I've used it for years and it works as well on Linux as on Windows.

Simply add the relevant portion, everything from this line down

Code:
# [Start of entries generated by MVPS HOSTS],"
to your /etc/hosts.
 
1 members found this post helpful.
Old 07-08-2015, 10:31 AM   #10
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I did remember that, but couldn't find the address. I've never created such a large hosts file, as I've always presumed it would slow the computer and this one's slow enough already.
 
  


Reply



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
L.O.document font prints the size of Firefox default "noto sans 22" instead of "ns12" 1sweetwater! Linux - Software 1 02-11-2015 07:45 AM
Opening Tabs pages on the Task bar on Chrome? ivtec Linux - Software 3 09-29-2013 09:37 AM
Strange "characters" appearing in auto "created" man pages Sector11 Linux - General 7 02-28-2010 11:05 AM
Can't exec "firefox 1.5", "prompts glibc detected" SPo2 Linux - General 1 06-04-2006 11:02 PM
where is "installed-chrome.txt" file in firefox 1.5 ?? tuxfood Linux - Software 1 12-21-2005 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration