LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08: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, 12:00 PM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Xubuntu
Posts: 5,431

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
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-06-2015, 12:03 AM   #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, 06:24 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,700

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Personally (for FF), I use the add-ons 'NoScript' and 'Adblock Plus'.
They work a treat
 
Old 07-06-2015, 07:03 AM   #5
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,332

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

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
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, 01: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, 08:12 PM   #8
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 281Reputation: 281Reputation: 281
Late, but my preference is for Ghostery. It blocks all trackers, not just ads.
 
Old 07-07-2015, 09: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: 15,866
Blog Entries: 27

Rep: Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662
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, 11:31 AM   #10
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Xubuntu
Posts: 5,431

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
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


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

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

All times are GMT -5. The time now is 09:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration