hi
i want to block a sites for a particular user. not for entire network .how can i do this.
squid
There are a lot ways to do so in squid. One of them is
Code: Select all
acl block_user src 0.0.0.0/255.255.255.255 (blocking user ip should be here)
acl block_site url_regex -i yourwebsite.com
http_access deny blokc_site block_user
http_access allow block_user
-
- Lance Naik
- Posts: 28
- Joined: Wed Apr 30, 2008 10:44 am
- Location: Karachi
- Contact:
hey man
There is very easy way to block webpages for a single user using user computer IP address with IPTABLES and IPCHAIN.
u may create script with iptables and use the following example for blocking single user on specific webpage
iptables -A INPUT -i ethx -p tcp -s useripaddress -d www.yahoo.com --dport 80 -j DROP
if you haven't knowledge on iptables do let me know i'll send you script
Thank you
Anwar
There is very easy way to block webpages for a single user using user computer IP address with IPTABLES and IPCHAIN.
u may create script with iptables and use the following example for blocking single user on specific webpage
iptables -A INPUT -i ethx -p tcp -s useripaddress -d www.yahoo.com --dport 80 -j DROP
if you haven't knowledge on iptables do let me know i'll send you script
Thank you
Anwar