maptiler / tileserver-php

MBTiles and MapTiler folder hosting with TileJSON, OGC WMTS, UTFGrid interaction and web interface. QGIS & ESRI ArcGIS compatible. Runs on any Apache+PHP webhosting. MapBox Studio Vector Tiles hosting.
http://tileserver.maptiler.com/
567 stars 164 forks source link

TileServer PHP Password Protection #99

Open zulkifil opened 7 years ago

zulkifil commented 7 years ago

In TileServer PHP if one implement password protection with .htaccess then TileServer PHP asks for authentication when anyone access TileServer PHP (that is good i want that) but it also ask authentication to all users who access the shared google maps (I do not want that). On other hand If i do not implement password protection with .htaccess then TileServer PHP work normally but it is open to all and anybody can access the TileServer PHP and its maps codes (it is not desirable in any production environment). Is it possible that only authenticated users can access TileServer PHP interface and all other user can just access shared maps without any authentication? How can i secure my TileServer PHP? I will appreciate help in this regard.

pankus commented 7 years ago

I'm interested on the same topic. Did you solve it?

daliborjanak commented 7 years ago

Just copy HTML code from the interface as is and put it to another folder and protect this folder with httacess. Tileserver will run in a different folder without htacces.

pankus commented 7 years ago

many thanks for this answer, but I do not figure out such a solution. Can you provide some additional details?