dcsimg
www.webdeveloper.com
Results 1 to 15 of 15

Thread: How do I block ad certain domains?

  1. #1
    Join Date
    Nov 2007
    Posts
    489

    How do I block ad certain domains?

    Is there a setting in Chrome or FireFox (or an extension I can install), that allows me to block certain domains?

    To make my Home Theatre PC kid-friendly, I need to be able to block certain ad networks that like to put inappropriate images in their advertisements.

    Perhaps my best bet is to simply edit my hosts file (point the offending domains to my localhost IP).

    Any thoughts?
    Thanks!

  2. #2
    Join Date
    Mar 2012
    Posts
    2,389
    I suggest you Google "google chrome block domain". I did and this is what I got...

  3. #3
    Join Date
    Apr 2015
    Posts
    2
    AdBlock-Plus for FireFox and Chrome has selective filtering option

  4. #4
    Join Date
    Apr 2014
    Posts
    19
    I would recommend the HOSTS file option, since that blocks the ads even if a different browser or application is used.

    Also, check out the Microsoft MVPs Host File. It's a preset hosts file that blocks thousands of ad networks and malware infested sites. Whenever I set up a new PC I set this file up on the PC to block any malware and ads.

  5. #5
    Join Date
    Nov 2007
    Posts
    489
    @BMR777 - thanks! The MVP file will help tremendously.

  6. #6
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,944
    Even with the best care in the world, you will have some slip by. Services like Vimeo, YouTube rely on the person posting the video to categorize it properly.

    I had a run in with some snotty nosed kid from the states, florida to be exact, he persistently uploads videos of Minecraft (what my son likes to watch and play) and its the first time he has seen this particular users account when about a minute in to the video, out comes a load of foul language, not the sort of thing you want your 8 year old son to hear, especially from another 8 year old, and the person posting the video insists on listing his videos as child friendly and not containing foul language, despite pointing the error of his ways, I kept getting a blank refusal and trying to pass the buck to me for allowing my son to watch YouTube videos...

    Complaining to people like YouTube gets you nowhere, that much I can say, If you are worried about adverts, etc, and other content, then your better off creating a user account on your media device and set up parental controls and use a video streaming player like Xine, VLC or even WMP.

    Even when you have set this filtering up, expect some to get through, programmers don't care, only care about circumventing any measures people put in place, what happened to honour and respecting a person privacy?
    STOP using $ prefix on JavaScript variable names...
    Please remember to wrap any code you have in forum tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  7. #7
    Join Date
    Nov 2007
    Posts
    489
    Yup! Same issue here.
    At least with this in place I can try to prevent animated bouncing Triple-Ds from appearing on the screens and new tabs/pop-ups that trick 7 year olds into clicking "OK".

  8. #8
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,944
    What are your router capabilities? It may be best implementing a policy on your router / modem.
    STOP using $ prefix on JavaScript variable names...
    Please remember to wrap any code you have in forum tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  9. #9
    Join Date
    Apr 2014
    Posts
    54
    I hope the next article will help you block websites internet explorer firefox google chrome

  10. #10
    Join Date
    Apr 2015
    Location
    Noida
    Posts
    18
    There are 2 ways for blocking it...
    First is that contact with hosting providers and request them to cease it for some while or for always and another thing is that if you do not paid required amount so it will be automatically blocked by service providers after some time.

  11. #11
    Join Date
    Nov 2011
    Location
    Bangladesh
    Posts
    39
    I dont have practical experience on this but got an article which describes different ways of blocking ad here http://dottech.org/17516/block-ads-i...-opera-how-to/

  12. #12
    Join Date
    Oct 2014
    Posts
    45
    You could install ad blocker inside it.

  13. #13
    Join Date
    May 2015
    Posts
    4
    the best way to block the site in the windows operating system is go to run and type the path C:\Windows\System32\drivers\etc and edit the file named hosts and insert the unwanted sites in the specific column

  14. #14
    Join Date
    Nov 2007
    Posts
    489
    Following up for everyone - the Microsoft MVPs Host File (linked above) has been working out really well.
    The file itself is quite the overkill for my purposes - there are many legitimate tracking URLs in there (like SiteCatalyst tracking requests from legitimate sites like Banks, etc.).

    So far, I've only had to add 3 new entries.

  15. #15
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,944
    Look at SpywareBlaster for bad URL's and malware blocking too.
    STOP using $ prefix on JavaScript variable names...
    Please remember to wrap any code you have in forum tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles