/ / There is a ban on displaying the page in a frame: what to do?

The ban on displaying the page in the frame is set: what should I do?

Sometimes you may have problems withweb-monitor in the "Yandex. Webmaster" metric. You want to see the record of visiting your site, but for no apparent reason you can not. Most likely, there is a ban on displaying the page in a frame.

What to do if the web browser does not work through "Yandex.Metric"

ban on displaying a page in a frame web browser
First, you need to check if yourgenerally a web browser in the metric (in the meter settings). We go to the page of the site where the metric meter is installed. Go to the page code view by clicking on (ctrl + u), the ctrl + f combination starts searching for the necessary code fragment, namely - webwizor: true. If the end of the fragment is false, then the code will not work correctly. The ban on displaying the page in the frame (web browser) is confirmed.

If the web browser in the metric still does not reproduce the user's actions, then there are several variants of the problem:

  1. Client-side browser blocking.
  2. Blocking from the server on which your site "lies".

Let's consider both ways of solving the problem. The first option: the web browser does not work because the browser blocked the client, which means that the page is disabled in the frame.

Client side browser blocking

You need to make sure that you have accessto any address of "Yandex": * .yandex.ru. If the incognito mode is selected in the settings, then the lock is enabled. Access to resources can be blocked by the antivirus (check its settings), your system's firewall or at the subnet level. To fix the problem, just add them to the list of trusted sites, and the problem should go away.

If the problem with setting a ban onDisplay the page in the frame still remains, then just go from a clean browser - it can be an incognito mode or a downloaded browser without plug-ins and add-ons, extensions (in the case of Google Chrome). This approach eliminates the problem in 99 cases out of 100.

Server-side lock

The second option: a ban on displaying pages in a frame is set. This problem is slightly more difficult to solve than in the first case.

  1. Open the "Yandex. Metrics" section "Web browser", press f12 (after clicking open the developer tools).
  2. The "Console" tab, we reload the page (F5).
  3. In the list of errors there will be an underlined red line, there will be written about the problem.

If the blocking of the display of your site in the frame is set, then in the "Console" you will see the following line: X-Frame-Options: SAMERIORIGN

prohibited from displaying the page in a frame

Recently, work is activelysolving this problem, but so far in most browsers the solution is not supported. If you remove this ban, then consciously make your site vulnerable to hacker attacks or simply hacking.

Here is an example: In the company "1-C-Bitrix" they say: "Are you more concerned with the security of the site or the fact that you can not see the user's actions on your site?" In order to ensure that it is for this reason that the web browser is not working and you can not see what your users are doing on the site, you need to check the server's response to a request in any known service. Enter the address of the page with the web browser installed and get the result, as in the screenshot.

open page in frame

The ban on displaying the page in a frame is set, the screen shows this.

You still decided to lift the ban? If it is at the configuration level of the server, and you put the site on virtual hosting, contact technical support.

If the ban is at the script level, different cmsmake a request to their security libraries, so the problem will be more difficult to solve than you think. Can not open the page in the frame? Contact the developers of your CMS.

As you can see, if you set the bar on displaying the page in a frame, you can solve the problem even yourself.

Read more: