I
I
iddddy2016-04-17 18:41:22
Nginx
iddddy, 2016-04-17 18:41:22

How to block access to iframe page?

there is an iframe page on the site.ru site, which is designed to insert the player on other sites, how to block access to this page on the site.ru site, and allow it if the page is inserted into other sites?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton B, 2016-04-17
@bigton

if ( $http_referer ~ site.ru ){
return 403;
}

V
Viktor Taran, 2016-04-18
@shambler81

You have already answered the question by asking it correctly.
Google immediately gives the result
xsef.ru/6c300461

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question