linux

IF I WANT TO BLOCK SOME WEBSITES IN A ORGANIZATION i.e not to access that websites in company by the users in linux what is the process explain?


3 Answers
1-3 of  3
3 Answers
  • Hello, by using Apache web hosting the blocking of website is so simple, just go to your configuration file where is the root path and all the configurations have done (/etc/httpd/conf.d/*.conf) just add under <Directory> tag "require not ip 127.0.0.1". 
    its done!
    thank you

  • Hello,
    Blocking of websites in Linux is very simple..
    Change your directory to '/etc/', Open a file named 'hosts' in any text editor and add a line in the end like this:
    127.0.0.1      domain.com (replace domain.com with the name of the domain that you wish to block)

    change the permissions of the file if asked.

    Thats it.

    Thankyou.

Unix And Linux

Didn't get the answer.
Contact people of Talent-Unix And Linux directly by clicking here