Page 2 of 11 FirstFirst 1234 ... LastLast
Results 11 to 20 of 107

Thread: How To Block Ads And Spyware In Linux

  1. #11
    Join Date
    May 2005
    Location
    Seattle, WA
    Beans
    250
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How To Block Ads And Spyware In Linux

    i could also be because it has to look through the hosts file every time it loads a webpage.
    "If you are savvy and smart about the choices you make in life, The sky is not the limit!" - Mark Shuttleworth
    This message has been rot 26 encrypted for security reasons.

  2. #12
    Join Date
    Jan 2005
    Location
    Toronto, Ontario, Canada
    Beans
    2,204

    Re: How To Block Ads And Spyware In Linux

    that would be a very short amount of time, it takes mirco seconds to read a file, want proof time cat <my file> its super fast

    Code:
    earobinson@null:~/Desktop/download$ time cat UbuntuCodeofConduct-1.0.txt
    = Ubuntu Code of Conduct =
    
    This Code of Conduct covers your behaviour as a member of the Ubuntu
    Community, in any forum, mailing list, wiki, web site, IRC channel,
    install-fest, public meeting or private correspondence. The Ubuntu
    Community Council will arbitrate in any dispute over the conduct of a
    member of the community.
    
          '''Be considerate.''' Your work will be used by other people,
          and you in turn will depend on the work of others. Any decision
          you take will affect users and colleagues, and we expect you to
          take those consequences into account when making decisions. For
          example, when we are in a feature freeze, please don't upload
          dramatically new versions of critical system software, as other
          people will be testing the frozen system and not be expecting
          big changes.
    
          '''Be respectful.''' The Ubuntu community and its members treat
          one another with respect. Everyone can make a valuable
          contribution to Ubuntu. We may not always agree, but
          disagreement it no excuse for poor behaviour and poor
          manners. We might all experience some frustration now and then,
          but we cannot allow that frustration to turn into a personal
          attack. It's important to remember that a community where people
          feel uncomfortable or threatened is not a productive one. We
          expect members of the Ubuntu community to be respectful when
          dealing with other contributors as well as with people outside
          the Ubuntu project, and with users of Ubuntu.
    
          '''Be collaborative.''' Ubuntu and Free Software are about
          collaboration and working together. Collaboration reduces
          redundancy of work done in the Free Software world, and improves
          the quality of the software produced. You should aim to
          collaborate with other Ubuntu maintainers, as well as with the
          upstream community that is interested in the work you do. Your
          work should be done transparently and patches from Ubuntu should
          be given back to the community when they are made, not just when
          the distribution releases. If you wish to work on new code for
          existing upstream projects, at least keep those projects
          informed of your ideas and progress. It may not be possible to
          get consensus from upstream or even from your colleagues about
          the correct implementation of an idea, so don't feel obliged to
          have that agreement before you begin, but at least keep the
          outside world informed of your work, and publish your work in a
          way that allows outsiders to test, discuss and contribute to
          your efforts.
    
          '''When you disagree,''' consult others. Disagreements, both
          political and technical, happen all the time and the Ubuntu
          community is no exception. The important goal is not to avoid
          disagreements or differing views but to resolve them
          constructively. You should turn to the community and to the
          community process to seek advice and to resolve
          disagreements. We have the Technical Board and the Community
          Council, both of which will help to decide the right course for
          Ubuntu. There are also several Project Teams and Team Leaders,
          who may be able to help you figure out which direction will be
          most acceptable. If you really want to go a different way, then
          we encourage you to make a derivative distribution or
          alternative set of packages available using the Ubuntu Package
          Management framework, so that the community can try out your
          changes and ideas for itself and contribute to the discussion.
    
          '''When you are unsure,''' ask for help. Nobody knows
          everything, and nobody is expected to be perfect in the Ubuntu
          community (except of course the SABDFL). Asking questions avoids
          many problems down the road, and so questions are
          encouraged. Those who are asked should be responsive and
          helpful. However, when asking a question, care must be taken to
          do so in an appropriate forum. Off-topic questions, such as
          requests for help on a development mailing list, detract from
          productive discussion.
    
          '''Step down considerately.''' Developers on every project come
          and go and Ubuntu is no different. When you leave or disengage
          from the project, in whole or in part, we ask that you do so in
          a way that minimises disruption to the project. This means you
          should tell people you are leaving and take the proper steps to
          ensure that others can pick up where you leave off.
    
    real    0m0.077s
    user    0m0.000s
    sys     0m0.000s
    note that also includes printing the text which takes longer
    Last edited by earobinson; December 31st, 2005 at 09:46 PM.
    Edward A Robinson -- www.earobinson.org

  3. #13
    Join Date
    May 2005
    Location
    Seattle, WA
    Beans
    250
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How To Block Ads And Spyware In Linux

    sorry i dident think of that but sometimes weird stuff can slow programs down
    "If you are savvy and smart about the choices you make in life, The sky is not the limit!" - Mark Shuttleworth
    This message has been rot 26 encrypted for security reasons.

  4. #14
    Join Date
    Nov 2005
    Location
    Canada
    Beans
    137
    Distro
    Kubuntu Breezy 5.10

    Re: How To Block Ads And Spyware In Linux

    I'm not an expert in network and if someone knows more could correct me..but following this how-to: copy and paste the whole host.txt would erase your own fixed ip's set by your network system card('s) (In my case I've got a shared fixed connection over 2 eth cards over pppoe which have 2 ip's set on /etc/hosts file). Otherwise my speed on sites seems unchanged with all blocked sites.

    127.0.0.1 localhost.localdomain localhost ubuntu
    my.first.static.ip ubuntu.localdomain ubuntu
    my.second.static.ip ubuntu.localdomain
    #start of lines added by WinHelp2002
    # [Misc A - Z]
    127.0.0.1 phpadsnew.abac.com
    127.0.0.1 a.abnad.net
    127.0.0.1 b.abnad.net
    .................................................. ........................
    ...optimize, clarify, open, Share....knowledge.

  5. #15
    Join Date
    Dec 2005
    Beans
    27

    Re: How To Block Ads And Spyware In Linux

    Instead of using localhost (127.0.0.1) in your hosts file, use 0.0.0.0, it should remove that loopback effect and alleviate the timeout-lag.

  6. #16
    Join Date
    Apr 2005
    Beans
    33

    Re: How to block internet advertisements, banners and spyware in Linux

    Hey, thanks for your work. But I still can connect some of these sites, for example: www.visitfind.net

    Does it really work?

    forbmj


    Quote Originally Posted by anil_robo
    Hi all! I'm seeing heated discussions on spyware for linux, and I think it's a well-suited time to post a useful tutorial here.
    By following these simple steps, you will be able to block most advertisement banners on webpages, virus-infected websites, spyware-infected websites, and other insecure websites.

    Theory: In Linux, the file /etc/hosts contains information about how the system interprets website domain names. If you want to block a website, just make it point to your local address (e.g. www.site-to-be-blocked.com will point to 127.0.0.1 => The site won't open at all!).

    How to: First, you need a good hosts file to install. The one I use is here.
    Click on that link right now, and the file will open in a browser or a text editor. Select all the text in the file, and copy it.

    Now open a terminal, and type
    Code:
    sudo gedit /etc/hosts
    . Your hosts file should open up. This file may already have some entries in it, which we're not going to change. Go to the end of the file, and "paste" the contents of the hosts file you had copied to the clipboard earlier.
    Save the hosts file, close it, and reboot your computer.

    Now when you start browsing, you'll not see any ads, rather they'll simply fail to load! Here's a screenshot when I try to access an advertisement site (www.doubleclick.net):
    Attachment 4963

  7. #17
    Join Date
    Oct 2005
    Location
    Aldan, PA
    Beans
    552

    Re: How to block internet advertisements, banners and spyware in Linux

    Quote Originally Posted by forbmj
    Hey, thanks for your work. But I still can connect some of these sites, for example: www.visitfind.net

    Does it really work?

    forbmj
    Proof: Click on the thumbnail:
    Click image for larger version. 

Name:	Screenshot-Problem loading page - Mozilla Firefox.png 
Views:	320 
Size:	80.7 KB 
ID:	5010

    Did you follow the directions carefully?
    Photography by Indians
    I'm registered Linux User # 406032

  8. #18
    Join Date
    Apr 2005
    Beans
    33

    Re: How to block internet advertisements, banners and spyware in Linux

    sorry, I made a mistake and used the proxy when viewing it.

    Thanks a lot.

    Quote Originally Posted by anil_robo
    Proof: Click on the thumbnail:
    Click image for larger version. 

Name:	Screenshot-Problem loading page - Mozilla Firefox.png 
Views:	320 
Size:	80.7 KB 
ID:	5010

    Did you follow the directions carefully?

  9. #19
    Join Date
    Jun 2005
    Location
    Australia
    Beans
    1,837

    Re: How to block internet advertisements, banners and spyware in Linux

    Quote Originally Posted by forbmj
    sorry, I made a mistake and used the proxy when viewing it.

    Thanks a lot.
    I was doing the same thing. I followed all the instructions and was not getting any results. It was due to me having firefox set up to use my ISP proxy.

  10. #20
    Join Date
    Jul 2005
    Beans
    77

    Re: How To Block Ads And Spyware In Linux

    Thanks for this!

Page 2 of 11 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •