Posted: Mon Sep 10, 2012 4:20 Post subject: How can I block a specific URL on a DD-WRT router?
For example, I want to block website.com/whatever but not website.com, blah.website.com, or website.com/blah. Is there a way to do this, or can you only block the whole domain?
I tried adding the URL in question under Access Restrictions in the DD-WRT configuration but it doesn't seem to have any effect. Here are my settings:
and here is the list of clients:
I can still easily browse to google.com/imghp and google.com/images (which redirects to google.com/imghp) on my main PC with IP address 192.168.1.146.
Can I do this under Access Restrictions, or do I need to use iptables or set up a proxy server or something?
Last edited by davidkennedy85 on Mon Sep 17, 2012 16:44; edited 1 time in total
Privoxy has so called "actionfiles". Those define what to do when a request URL matches a given regular expression. One of the possible actions is "block".
Thank you eibr-grad for your quick answer.
I'm not a specialist and I don't understand the parallel proxy server.
And I want this router work alone (without PC) for the proxy server.
I just tried many firmwares and I don't understand why it work on WRT54G v3.1 and not with WRT54GL v1.1
Now, my WRT54g v3.1 is in another house and I can't check it for look the firmware version...
(and sorry for my bad english, I usually speak french)
Might not be the answer you, the OP, is looking for, but blocking by keyword works well in TomatoUSB. _________________ "You think you´re real smart. But you´re not smart; you´re dumb. Very dumb. But you´ve met your match in me. "
Colonel Flagg
Yes, you can use TomatoUSB as a repeater. It IS more complicated to set up though.
There are several versions of Tomato, I am currently a fan of the Shibby versions - http://tomato.groov.pl/ . _________________ "You think you´re real smart. But you´re not smart; you´re dumb. Very dumb. But you´ve met your match in me. "
Colonel Flagg
Tank you campigenus.
I just find another temporary solution, but with another Linksys router. The winner is WRT54G v7.2.
This router, with r14929 (micro) accept all restrictions.
Now, I must find same solution for my 2 wrt54gl v1.1