Recently I worked my way into the subject of mapservers or to be more precise, tileservers. I set up my own instance of a tileserver based on this beginners guide (with the exception of using tilestream instead of tilestache): http://www.axismaps.com/blog/2012/01/dont-panic-an-absolute-beginners-guide-to-building-a-map-server/
The server is running an accessible via http://example.com:8888
Although it is unlikely that the traffic explodes and the server gets into troubles, I still want to make sure that only my webpage (where I run my example which is using my tilestream-server) has access to the tilestream server.
Basically I want to keep the public away from accessing my tilestream server and i.e. only allow access if a valid key is transmitted (this seems to be what cloudmade does). Or maybe it would be an option to check the location where the request came from and only allow access from specific locations.
The TileStream server and the Webserver (version: Apache/2.2.22 (Ubuntu)) run on the same machine.
I am really lost here as I cant find any documentation about this. Any suggestions are very welcome.