Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: blocking sites

  1. #11

    gusto nako ibutang sa deamon ang script pero muout put ra ug lines sa top command ang argument. which is kung equal to one line ra ang mugawas ug wa ga-access sa net thru firefox ang user, the script should at least delete the appended lines in hosts file.

    unsaon nako pagsuwat atu nga script nga mu-grep ug mudelete sa lines?
    mas sayun ba kung pidof na lang ang sa argument?

  2. #12
    Quote Originally Posted by benicio View Post
    nganong 127.. man nga localhost man na nga ipstack?

    nablock jud ang yahoo?
    Katong imong 216.34.250.11 www.istorya.net, di na sya mo work kay di man ikaw si 216.34.250.11. etc/hosts works for incomming access if you use your localhost IP hence, you are (in a way) protecting services on your computer.

    127... works because that's the loopback address.

    You can also use squid or iptables in this case.

  3. #13
    thanks.
    naa koy nakit-an nga hosts.allow nna pod hosts.deny para asa man ni sila?


  4. #14
    mahitungod ba ni sa denyhost?

  5. #15
    Quote Originally Posted by benicio View Post
    thanks.
    naa koy nakit-an nga hosts.allow nna pod hosts.deny para asa man ni sila?

    Before anything else, please take note that /etc/hosts was not really meant for blocking but instead, for mapping. You map an IP to a correspoinding domain name, much like what DNS does. The reason why putting (ex. 127.0.0.1 istorya.net) gives you the impression that it's blocking is because you are telling your machine that istorya.net is your own machine (when obviously it's not). If you were running a web server on that machine, surfing to istorya.net in the example above would actually open the web files from your own machine and won't connect to the remote host (the real istorya.net).

    host.deny and host.allow are used to deny and allow hosts from accessing your machine. So pasulod, dili pagawas.

  6. #16
    Quote Originally Posted by CentOS View Post
    Before anything else, please take note that /etc/hosts was not really meant for blocking but instead, for mapping. You map an IP to a correspoinding domain name, much like what DNS does. The reason why putting (ex. 127.0.0.1 istorya.net) gives you the impression that it's blocking is because you are telling your machine that istorya.net is your own machine (when obviously it's not). If you were running a web server on that machine, surfing to istorya.net in the example above would actually open the web files from your own machine and won't connect to the remote host (the real istorya.net).

    host.deny and host.allow are used to deny and allow hosts from accessing your machine. So pasulod, dili pagawas.
    heheh na nose bleed ko gamay..seriously gamay lang ako na sabtan.. but anyways at least naa nasabtan.

  7. #17
    Quote Originally Posted by CentOS View Post
    Before anything else, please take note that /etc/hosts was not really meant for blocking but instead, for mapping. You map an IP to a correspoinding domain name, much like what DNS does. The reason why putting (ex. 127.0.0.1 istorya.net) gives you the impression that it's blocking is because you are telling your machine that istorya.net is your own machine (when obviously it's not). If you were running a web server on that machine, surfing to istorya.net in the example above would actually open the web files from your own machine and won't connect to the remote host (the real istorya.net).

    host.deny and host.allow are used to deny and allow hosts from accessing your machine. So pasulod, dili pagawas.
    thanks.
    mao diay naa sad ang http://localhost diri
    murag sama ra sad ni sa pagbrowse ug html files in the machine file:///path/to/files/

  8. #18
    Quote Originally Posted by waterboy0911 View Post
    heheh na nose bleed ko gamay..seriously gamay lang ako na sabtan.. but anyways at least naa nasabtan.
    Hehe asa man ato ang wala nimo masabtan, basin mas ma klaro pa nako explain.. usahay man gud, dili ko masabtan kung ako mag explain kay naa koy tendency mag tuyok2x

    Btw, kanang /etc/hosts file sa linux, it's the same with the hosts file in windows, kanang naa sa \windows\system32\drivers\etc and they perform the same function.

  9.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. How to access block sites by an ISP?
    By DeathFox in forum Networking & Internet
    Replies: 2
    Last Post: 12-06-2010, 11:59 AM
  2. How to BLOCK sites -
    By fight4love in forum Networking & Internet
    Replies: 24
    Last Post: 11-24-2010, 05:25 PM
  3. blocking site
    By dugo in forum Websites & Multimedia
    Replies: 20
    Last Post: 01-07-2009, 07:55 PM
  4. Bypassing blocked sites
    By Metz in forum Networking & Internet
    Replies: 16
    Last Post: 09-20-2006, 07:21 PM
  5. How to block sites using no www. prefix instead http://
    By Freeza in forum Networking & Internet
    Replies: 17
    Last Post: 07-21-2006, 09:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top