Hosts file based redirection will only work if going through the local DNS resolver. You could use iptables on the raspberry pi, redirecting connections for certain IP:Port combos to wherever you like. The difficulty with this approach is, services like youtube might use way more than a single IP. ...
Thanks for replying. Modifying the /etc/hosts file works when I try to browse from the RPi itself.
However, it does not redirect other machines connecting to the Wifi hotspot.
I've configured my RPi as a Wifi hotspot / access point using the following tutorial: http://www.maketecheasier.com/set-up-raspberry-pi-as-wireless-access-point/ The network is planned to be used by a small handfull of people at school for basic browsing only, as the RPi network is not powerful enou...