T
T
TechNOIR2020-06-16 22:34:49
Nginx
TechNOIR, 2020-06-16 22:34:49

nginx. How to deny access to the root of the site, but allow access to links of a certain type?

Good afternoon.

Please tell me how to deny access to the root of the site, but allow access to links of a certain type?
Links like this:

https://mysite.ru/597acac585c284f55cea086f?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9

It is necessary to prohibit access to everything except links of this kind. Tokens are always changing.

thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Николай Антал, 2014-08-20
@Shuboanator

Ну во-первых: это не javascript, а фреймворк jQuery, на чистом javascript все было бы гараздо сложней, все таки стоит различать.
Возможно еще поможет api.jquery.com/toggleClass , ну или рецепт из первого комментария

A
Alexander, 2014-08-20
@tru3

You are adding a class to one element and trying to remove it from another. Is that how it's intended?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question