That is fairly easy. Go to Access Restrictions tab
And create a policy like this:
Status: Enable
Policy Name: <insert some name here>
Hit Edit list of clientes
and insert the pcs mac addresses or individual ip addresses or fill the ip range in Enter the IP Range of the clients with you subnet to filter every pc connect to the router (most reliable). For example, if your subnet is 192.168.1.x enter somethin like this:
192.168.1.0 ~ 192.168.1.254
Hit Save, Apply Settings and close the page.
Filter selected
Days: unselect Everyday and chose the days you wish to to be blocked
Times: Chosse 24h or a time period
At last in Website Blocking by URL Address enter the domain name:
websitedomain.com
Click Save in the end of the Page and the Apply Settings
I didn't test this at all but it should work... Create access restriction #1 to drop all their traffic at the times you want to limit them to the one site. Then edit this with the site domain/IP and save it to your firewall script on the admin->commands page. If the site has multiple IP's then you'll need to specify the netmask or create more rules.
iptables -I grp_1 -d sitename.com -j ACCEPT _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Joined: 18 Jun 2010 Posts: 263 Location: Tallahassee, FL
Posted: Thu Jul 29, 2010 0:17 Post subject:
What follows is brainstorming by a guy (me) who doesn't actually know much. Here goes --
How about setting up your own DNS server that knows only this one web site, and turning off access to any other DNS servers during certain hours? _________________ Netgear WNR834Bv2 DD-WRT build 14311 nokaid (Primary)
Linksys WTR54GSv1 DD-WRT build 14896 mini with AutoAP (x2) -- cool!
Linksys WRT54Gv2.2 DD-WRT build 14896 mini with AutoAP -- cooler!
Netgear WNR834Bv2 DD-WRT build 14896 mini with AutoAP -- also cool.
Linksys WTR54GSv1 DD-WRT build 14311 std (Client bridge for Ooma voip phone)
Linksys WAP54Gv2 DD-WRT build 14896 micro -- haven't figured out a use for it.
Joined: 18 Jun 2010 Posts: 263 Location: Tallahassee, FL
Posted: Thu Jul 29, 2010 14:24 Post subject:
serotta1958 wrote:
My own DNS server. Would I need a dedicated PC on my network to do that?
Others more knowledgeable will have to answer, but it is my impression that DD-WRT includes a simple DNS server. Hey, gurus -- have I got that straight? _________________ Netgear WNR834Bv2 DD-WRT build 14311 nokaid (Primary)
Linksys WTR54GSv1 DD-WRT build 14896 mini with AutoAP (x2) -- cool!
Linksys WRT54Gv2.2 DD-WRT build 14896 mini with AutoAP -- cooler!
Netgear WNR834Bv2 DD-WRT build 14896 mini with AutoAP -- also cool.
Linksys WTR54GSv1 DD-WRT build 14311 std (Client bridge for Ooma voip phone)
Linksys WAP54Gv2 DD-WRT build 14896 micro -- haven't figured out a use for it.
I didn't test this at all but it should work... Create access restriction #1 to drop all their traffic at the times you want to limit them to the one site. Then edit this with the site domain/IP and save it to your firewall script on the admin->commands page. If the site has multiple IP's then you'll need to specify the netmask or create more rules.
iptables -I grp_1 -d sitename.com -j ACCEPT
grp_1 is the chain Access Restriction #1's rules are put in. If you set it in AR #2 then you're use grp_2 instead, etc.
DNSMasq can do DNS but it would be more complicated to set up and wouldn't be as secure because even if DNS is blocked completely, you can still manually set up your own domain mappings in the /etc/hosts file. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Please guys,
if i need this to access 2 sites only, how do i go about it ??
Just create another rule for the other site. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Please guys,
if i need this to access 2 sites only, how do i go about it ??
Just create another rule for the other site.
thanks a lot.
Did it and every other site works great except yahoo mail; for some reasons i don't know, people under the filter can't seem to be able to log on to yahoo mail.
i've include all of; login.yahoo.com, mail.yahoo.com, us.mg4.yahoo.com. i even tried ip addresses for yahoo mail but it keeps changing.
Posted: Sun Sep 02, 2018 17:34 Post subject: Clarify the settings for block for ALL except for one websit
Hi Sirs,
Could you please clarify how did you success with this??
I Want to block ALL internet on all the device connected to my DD-WRT router except for 6 website!
I Have setted DD-WRT with:
*SETUP:
- WAN Connection type= Auto-DHCP mode
- Local IP: 192.168.3.1
- Subnet: 255.255.255.0
- DHCP type= DHCP Server
- DHCP server0 ENABLE
- Use DNSMasq for DHCP= NO!
- Use DNSMasq for DNS= NO!
*ADVANCED ROUTING: Operating Mode= GATEWAY
*WIRELESS: Wireless Mode = "AP"....
*SERVICES: All Disabled.
*SECURITY: Firewall Disable!
With these settings, I'm able to connect to router and surf the web!
Then the IP range of this router are different from my modem and LAN (192.168.55.1). And I WANT THIS! because I want to have a separate LAN/Wifi access point, to internet, only for my childrens and filter all the traffic!