N
N
neskin2011-09-29 10:46:02
Computer networks
neskin, 2011-09-29 10:46:02

How to close HTTP auth site but leave Yandex.Api access

I need protection on the site, I use http authentication, but Yandex.Maps does not work due to the fact that requests from Yandex Api do not pass due to worthwhile authentication.

As soon as I take it off, everything is ok.

Please advise how to solve this problem? Or alternative methods to close the site

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tick, 2011-09-29
@tick

a) transfer the functionality of Yandex.maps to the maps.my-site.com subdomain
b) open http-auth for my-site.com/maps
c) authorize by entering a login-password into the web form

V
Vlad Zhivotnev, 2011-09-29
@inkvizitor68sl

Look with which user agent the API comes and in nginx make a construction like
if {$http_user_agent !~ APIwhatever} {
construction describing your authorization;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question