Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
well adding entries, unless deliberately incorrect, will do nothing whatsoever to block a web site.
in what sense are you trying to block it? You need to provide a lot more information to get the help you want. Generally the answer would be to use a proxy and filter specific domain names, but we've no idea if that actually meets your requirements.
"this internet cafe"??? As in your internet cafe? Properly run internet cafes will use portal sites to provide access via proxies with authentication services etc... it's nothign for the users to do, it's the network owners responsibility totally.
Well in that case this doesn't really sound like the sort of question you should be asking. An internet cafe IT solution will already have this functionality installed as a real default. What is the setup you're actually running?
Or is the answer to suggest you ask your technical support for the service you're renting from them??
i only have 4 computers. one in each port of the router although i have 8 ports. i manually install each computer. its not even networked so onli one computer can print.
so i have to figure each computer what ever i do to one of it.
Well in that case this doesn't really sound like the sort of question you should be asking. An internet cafe IT solution will already have this functionality installed as a real default. What is the setup you're actually running?
Or is the answer to suggest you ask your technical support for the service you're renting from them??
no, you need to help people not confuse them Mr ..
hi turf, you definitely need to install squid and when you install and configure it (it's so simple) you can use following line in /etc/squid.conf :
Code:
acl bad url_regex -i google.com badwebsite.com
http_access deny bad
or
Code:
acl bad url_regex google.com badwebsite.com
http_access deny bad
sorry i'm not sure of "-i " is correct or not but thats make uppercase and lower case the same
I'll throw up another option that's relatively simple: configure your router to use OpenDNS and then go setup an account there. They have built in filtering for certain types of content. It's not as effective as setting up your own squid proxy, but it works well enough in most cases and requires low technical expertise.
Then go to untangle.com for either a free or for pay way to help protect your place.
From your hosts file example you should have put 127.0.0.1 to block the url. One could get past tha if they knew the actual IP. Hosts only block FQDN's and other Named resources.
You really want a layer 7+ virtual or real machine or hardware I'd think.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
Quote:
i only have 4 computers. one in each port of the router
Have you checked your router? I've got a Netgear one which allows you to set up a list of sites to block, No setting up any computer attached to it, the router does it all. I'd assume Linksys, Belkin, etc routers work in a similar fashion.
Point your browser at the router, the IP is usually 192.168.1.1 or perhaps 192.168.1.0 and log into the Admin page. You'll need the admin password of course.
i only have 4 computers. one in each port of the router although i have 8 ports. i manually install each computer. its not even networked so onli one computer can print.
so i have to figure each computer what ever i do to one of it.
Linux security does not have to be complex,
and simplicity does not have to mean sacrificing power.
With linux you will have a firewall up and running in minutes.
For simple blocking website you can use modern linux firewall but you should have knowledge on LINUX. search in google site.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.