A ban on displaying a page in a frame has been set: what to do?

Table of contents:

A ban on displaying a page in a frame has been set: what to do?
A ban on displaying a page in a frame has been set: what to do?
Anonim

Sometimes you may experience problems with the web browser in the "Yandex. Webmasters" metric. You want to see a recording of a visit to your site, but for some reason you can't. Most likely, a ban on displaying the page in a frame is set.

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

ban on displaying a page in a webview frame
ban on displaying a page in a webview frame

First of all, you need to check if your web browser is enabled at all in the metric (in the counter settings). We go to the page of the site where the metric counter is installed. Go to page code view by pressing (ctrl+u), ctrl+f combination starts searching for the required code fragment, namely webwizor:true. If the fragment ends with false, then the code will not work correctly. The ban on displaying the page in a frame (webviewer) has been confirmed.

If the web browser in the metric still does not reproduce user actions, then there are several options for the problem:

  1. Client browser blocking.
  2. Side lockthe server on which your site "lies".

Let's consider both options for solving the problem. The first option: the web browser does not work due to the blocking of the client by the browser, which means that the display of the page in the frame is prohibited.

Client browser blocking

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

If the problem with setting the ban on displaying the page in the frame still remains, then just go from a clean browser - it can be "Incognito" mode or a downloaded browser without plugins and add-ons, extensions (in the case of "Google Chrome "). This approach fixes the problem 99 times out of 100.

Server side blocking

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

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

If your site is blocked from displaying in a frame, then in the "Console"you will see this line: X-Frame-Options: SAMERIORIGN

set prohibition to display the page in the frame
set prohibition to display the page in the frame

Recently there has been a lot of work to solve this problem, but it is not yet supported in most browsers. If you remove this ban, then you deliberately make your site vulnerable to hacker attacks or simply hacking.

Let's give an example: The company "1-S-Bitrix" says: "Is the security of the site more important to you or the fact that you cannot see the user's actions on your site?" In order to make sure that it is for this reason that the web browser does not work, and you cannot see what your users are doing on the site, you need to check the server response to the request in any known service. Enter the address of the page with the installed webvisor and get the result, as in the screenshot.

open page in frame
open page in frame

A ban on displaying the page in a frame has been set, the screen shows this.

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

If the ban is at the script level, various cms will query their security libraries, so the problem will be more difficult to solve than you think. Failed to open a page in a frame? Contact your CMS developers.

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

Recommended: