Koozali.org: home of the SME Server

[SOLVED] How to ban a website/websites?

Offline M3kk

  • *
  • 18
  • +0/-0
[SOLVED] How to ban a website/websites?
« on: June 24, 2015, 10:28:19 AM »
Hello,

i want a little help banning a website on all the clients after an SME. I tried to make a custom template for the hosts file (/etc/hosts). The hosts file is ok, when i ping the website from the SME the ping goes regarding what i set in the hosts file. The clients got ips by dhcp and all the clients got the gateway and the dns server the sme servers ip.
I tried the WebFiltering but i dont want to do it with squid.. i prefer to make this from the hosts/dns file.

PS: This method with hosts worked with openwrt..

Thanks.
« Last Edit: July 15, 2015, 06:10:33 PM by Stefano »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to ban a website/websites?
« Reply #1 on: June 24, 2015, 10:32:01 AM »
if you don't want squid (onboard), just add that website domain to your SME..

it will work as long as your SME is the dns server for your lan

don't edit conf files (read the header at the top of them)

Offline M3kk

  • *
  • 18
  • +0/-0
Re: How to ban a website/websites?
« Reply #2 on: June 24, 2015, 11:37:34 AM »
I made the change with templates-custom, not with direct editing.. Will try like that, ty.
« Last Edit: June 24, 2015, 11:42:07 AM by M3kk »

Offline M3kk

  • *
  • 18
  • +0/-0
Re: How to ban a website/websites?
« Reply #3 on: July 15, 2015, 06:09:21 PM »
Yes, your method resolved this.

Thanks, can be closed, and marked as [SOLVED] :).