![]() | |
|
Welcome to the ABXZone Computer Forums forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Re-Retiring Join Date: Sep 2002 Location: MN, USA
Posts: 24,834
| Hosts file in Linux??? Is it possible? please tell me how if it is. i am not all that experienced, so i may need some hand-holding to get me thru
__________________ Bye Bye ABXZone.....Rest In Peace. |
| (Offline) | |
| | #2 | |
| Registered User Join Date: Apr 2001 Location: Fresno
Posts: 168
| Quote:
maybe this is what you looking for : /etc/hosts edit it using your favourite editor, e.g. vi /etc/hosts hope it helps
__________________ AMD Athlon XP 2500+ on A7N8X Deluxe (running 3200+) 512 MB (2x256) OCZ PC3200 200 GB Western Digital ATI AIW 9700 Pro | |
| (Offline) | |
| | #3 |
| Re-Retiring Join Date: Sep 2002 Location: MN, USA
Posts: 24,834
| well, i have a hosts file in windoze to block almost all pop-ups, so i want to do the same in linux. is that where the file is stored?
__________________ Bye Bye ABXZone.....Rest In Peace. |
| (Offline) | |
| | #4 | |
| Registered User Join Date: Apr 2001 Location: Fresno
Posts: 168
| Quote:
that you referring to. /etc/hosts list known hosts and used for networking purposes. I'm not using any popup blocker program in Linux and I have no problem with popup. I used Firefox as my browser (it has internal popup blocker IIRC) hnsn82
__________________ AMD Athlon XP 2500+ on A7N8X Deluxe (running 3200+) 512 MB (2x256) OCZ PC3200 200 GB Western Digital ATI AIW 9700 Pro | |
| (Offline) | |
| | #5 | |
| Re-Retiring Join Date: Sep 2002 Location: MN, USA
Posts: 24,834
| Quote:
in win the hosts file is used to block sites that are pop ups etc, because i use FF in win as well and it doesn't block all of them the hosts file will even block the ads that show up on the top of ABX
__________________ Bye Bye ABXZone.....Rest In Peace. | |
| (Offline) | |
| | #6 | |
| Registered User Join Date: Apr 2001 Location: Fresno
Posts: 168
| Quote:
what is the file name of the hosts file you referring to in Window ? if possible give the full path as well (c:\windows\blablabla)
__________________ AMD Athlon XP 2500+ on A7N8X Deluxe (running 3200+) 512 MB (2x256) OCZ PC3200 200 GB Western Digital ATI AIW 9700 Pro | |
| (Offline) | |
| | #7 |
| Re-Retiring Join Date: Sep 2002 Location: MN, USA
Posts: 24,834
| this is the one i use, it works really really good too. I don't use any pop-up blocker programs other than Firefox. http://www.mvps.org/winhelp2002/hosts.htm |
| (Offline) | |
| | #8 | |
| Registered User Join Date: Apr 2001 Location: Fresno
Posts: 168
| Quote:
To answer you original question, yes you can put those popup address in /etc/hosts and you will achieve same result. for example : 127.0.0.1 popup.company.com name resolution in linux involves 2 files as far as i know , first look at /etc/hosts if can't found then try the server listed on /etc/resolv.conf cheers
__________________ AMD Athlon XP 2500+ on A7N8X Deluxe (running 3200+) 512 MB (2x256) OCZ PC3200 200 GB Western Digital ATI AIW 9700 Pro | |
| (Offline) | |
| | #9 |
| Re-Retiring Join Date: Sep 2002 Location: MN, USA
Posts: 24,834
| hmm, i don't have a /etc/hosts so i added them to resolv.conf, but it didn't stop the ads
__________________ Bye Bye ABXZone.....Rest In Peace. |
| (Offline) | |
| | #10 | |
| Resident ABX Wizard ![]() Join Date: May 2003 Location: London, Ontario
Posts: 8,814
| Quote:
Sorry, Windows thinking. | |
| (Offline) | |
| | #11 | |
| Registered User Join Date: Apr 2001 Location: Fresno
Posts: 168
| Quote:
adding in /etc/resolv.conf wont work in /etc/resolv.conf we list nameserver (server that we ask to conver our dns name into ip) the way that host trick works is as follow: When you put 127.0.0.1 popup.company.com (in /etc/hosts), when your browser trying to get popup from popup.company.com it will try to get it from 127.0.0.1 which is your own computer, which it will never found , thus can't show the popup. if it is an image you can verify by trying to look at the properties of the image, it will say (http://127.0.0.1/somestuff/img.jpg). If it can't find popup.company.com at /etc/hosts, the browser going to ask one of the server listed at /etc/resolv.conf , which give your browser the real ip of popup.company.com and you got the popup. cheers
__________________ AMD Athlon XP 2500+ on A7N8X Deluxe (running 3200+) 512 MB (2x256) OCZ PC3200 200 GB Western Digital ATI AIW 9700 Pro | |
| (Offline) | |
| | #12 |
| Re-Retiring Join Date: Sep 2002 Location: MN, USA
Posts: 24,834
| oh, i though you meant that was a dir. i bet i have it.
__________________ Bye Bye ABXZone.....Rest In Peace. |
| (Offline) | |
| | #13 |
| Re-Retiring Join Date: Sep 2002 Location: MN, USA
Posts: 24,834
| hey i fixed the hosts file and no more ads
__________________ Bye Bye ABXZone.....Rest In Peace. |
| (Offline) | |
| | #14 | |
| Registered User Join Date: Apr 2001 Location: Fresno
Posts: 168
| Quote:
could you share your compilation of poppers here ? it would be a great resource for everyone. thanks
__________________ AMD Athlon XP 2500+ on A7N8X Deluxe (running 3200+) 512 MB (2x256) OCZ PC3200 200 GB Western Digital ATI AIW 9700 Pro | |
| (Offline) | |
| | #15 | |
| Resident ABX Wizard ![]() Join Date: May 2003 Location: London, Ontario
Posts: 8,814
| Quote:
Essentially all you have to do is copy and paste the text from the link you posted! | |
| (Offline) | |
![]() |
| Thread Tools | |
| Display Modes | |
| |