Who told you that temples are not open to non-hindus. There are few temples which are not open, (only few temples) one such is Guruvayoor temple. There are specific reasons for the same. Non Muslims are not allowed anywhere near Mecca, are you aware of it.