Can I lock a user to one site only in Chrome?
My solution was to use the host-rules command line switch for Google Chrome. This can be used to force the user to remain on the same domain (and port number, if you like).
For example, if you want to start Chrome in Kiosk mode and disallow the user from navigating away from localhost
on port 80:
chromium-browser --kiosk --host-rules="MAP * localhost:80"
Of course, in this case, the user can still navigate to http://localhost/page_2
, but they can't go to http://www.yahoo.com/
Not sure how well this works (I've never tried it), but Chrome seems to have a kiosk mode:
chrome.exe --kiosk [url]
More details on Chrome's Google Code issues page.
Update: Kiosk mode won't prevent navigation to other sites if there are links on the page. The Pentasoft Custom Browser chrome extension allows you to set up a whitelist of domains the browser can access.
This is far more difficult than you imagine. For one, what about hyperlinks? Would you allow redirects? What would you consider "one" site? Do you mean domain?
This is far easier in Internet Explorer. Place your one domain in the trusted domains. Everything else under restricted. . .
If it is a homepage you control, just shut off the Internet and allow only network connections to your controlled webserver.