Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My son has a Nexus 4 and wants to use Google Now. I have k9 web protection enabled on it, which blocks Google Now, as there is no way to force safe search for google images. However, I have found some interesting information, which I would like to put into practice. According to Google, one can:

2) Update the router configuration

To enable SafeSearch throughout a school network, you can use a proxy server to append &safe=active or &safe=on directly to all search URLs. This will enable strict SafeSearch.

Google Sends search queries along URL paths like google.com/search?..., google.com/images?..., google.com/s?... Schools that activate SafeSearch with a proxy should keep their filters updated to include /search, /s, and /images URLs.

So, I would like to do this. I just have an AT&T Wi-Fi router. I am guessing I will need my own computer for this, which is a Mac, OS X 10.8.2, on WiFi.

In summary, I need to know how to set up a proxy server on my router, and enable this change of query, on EVERY device. Actually, if that is too difficult, just the phone. Thanks.

share|improve this question
Not strictly an answer to your question but have you tried OpenDNS - www.opendns.com - the only thing you need to change at your end are the DNS settings on your router. The free (home) service is pretty good and well worth investigating if you have not tried it. As your kids get more technically sophisticated there are ways to route around this solution but kids learn to defeat most solutions eventually. –  BJ292 Dec 23 '12 at 21:32
Yeah... My kid is going could easily get around that. I have to say he is probably one of the most technically advanced kids I have met. 14 and he is doing all kinds of programming. –  Josiah Dec 24 '12 at 1:37
So don't give him Admin privileges and that would solves this problem so you use OpenDNS. –  EliadTech Dec 24 '12 at 16:56
@EliadTech, OpenDNS looks pretty good. You should post that as an answer. –  Josiah Dec 24 '12 at 16:58
That was BJ292 idea, I've just completed him... –  EliadTech Dec 24 '12 at 17:06

3 Answers 3

I need to know how to set up a proxy server on my router

First, this isn't possible (in the way you mean). You don't set up proxy servers IN routers. At least, not in a standard DSL/Cable modem/Router that would have been provided.

You set up a proxy server in another device (computer) in the network, and have the router point at it.

I'll use my home network as an example. I have a media converter (changes the DSL/phone line to an Ethernet plug). Next in line is my MacMini Server. It creates the PPPoE connection to my ISP. In the server I am running DHCP (hands out the IP addresses to my network so other computers can connect using WiFi), DNS (handles name services for me), an email server, a VPN server, a caching proxy server, and many other services. The only way to connect to my network through the MacMini is wirelessly. In this way, all clients are forced to go through the services I built.

I mention all this because I am NOT using the stock DSL router that was provided by my ISP.

The process to do all this would be the subject of a book. I did it because I am a network security engineer by trade, and understand the nuances of what I'm doing (and places that I traded off security, speed, and functionality).

I can't recommend this for you, because I don't know all the specifics of your situation. What I can say is that you may want to see about installing something like netnanny on the phone. Other options include researching proxy services that are available commercially and requiring it to use them.

EDIT: Conceivably, you could try and install a version of linux into a modem/router and make this happen. However, you would:

  1. Void warranties
  2. Brick the device if you make a mistake
  3. Potentially cause a problem that gets the attention of your ISP
  4. Not get it to work without compiling a version of Linux to go on it
  5. Have to find a driver to get the modem function to work/write a driver to make this work.

When I say this isn't possible, I mean for a consumer grade situation. If you are an enthusiast and can afford to take all the risks, then it may be the thing for you to try.

share|improve this answer
So, it would appear that this is not going to be fairly simple. Netnanny does not help, as it is like K9, where it uses it's own browser, and blocks others. That is not what I want, all I need to be able to do is change any search results and add the safe search tag to them on the phone. –  Josiah Dec 23 '12 at 20:29
It's probably impossible to set up a proxy on a consumer-grade router, but if you have an old PC that you can install linux and squid on, it's not that difficult. There's no technical reason the proxy has to be running on the router. –  user55325 Dec 23 '12 at 21:12
Actually, you can use squid to rewrite URLs using the url_rewrite_program directive in the config file. If you don't want to write the code yourself, you can use something like Squirm also: squirm.foote.com.au –  user55325 Dec 23 '12 at 21:48
@user55325, if you could write an answer showing how to do that, I would really appreciate it! In two days I'll even throw in a bounty to you, although it is not much. –  Josiah Dec 23 '12 at 22:05
@Everett, Your answer is a good one +1, and I'm sure it will help some people, but User55325 and BJ both had good answers. –  Josiah Dec 24 '12 at 18:43

You could accomplish this task by setting your DNS servers to opendns.com addresses, and and then sign up for an account there to manage your public IP address, then specifically disable all requests to google.com, or to http://www.google.com/imghp, and all other image areas in order to block out those requests. It's not a perfect solution.

I also do IT for a living and there are solutions that can use a proxy inside the router.

First, you could try installing DD-WRT with squid on your home router, but that is a complicated process and not what I would recommend.

A better option is to look at a Buffalo WZR-1750 router that has DD-WRT installed.

A third option is to use an old PC, add a second network card into it and then download and install the IPCop router solution. IPCop takes some work to set up, but it's online, it's very reliable and you can do all sorts of things with it such as restricting what devices can get online, blocking certain IP addresses, certain MAC addresses, or you can restrict access to the internet to certain times of the day (such as from 5PM - 8PM when there's family accountability, and the kids can't search porn when their in the family room with you.

I would recommend going with either the buffalo router or with the IPCop solution. You can get cheap PCs from many computer shops or check your local school or university for PCs that they sell off as they replace their computers in the classrooms.

share|improve this answer

I would suggest that you use the Untangle gateway ISO. There is a free version and pay version. I suspect the free version will likely do what you need it to do.

Untangle Gateway is a KNOPPIX-based network gateway with pluggable modules for network applications like spam blocking, web filtering, anti-virus, anti-spyware, intrusion prevention, VPN, SSL VPN, firewall, and more.

For your home use, you can install it on your own computer. For larger installations, they make pay versions that can be purchased on network devices.


share|improve this answer

protected by DragonLord May 23 at 2:36

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.