D
D
Dmitry Korshunov2014-02-18 14:17:55
Information Security
Dmitry Korshunov, 2014-02-18 14:17:55

How to disable the display of the site in the frame?

My sites are viewed by an "ill-wisher" in the frame of another site - designed for anonymous visits to the resource. Although anonymity is controversial, since only the URL of the page on which the visitor is located is hidden, I would still like to prohibit viewing sites in the frame.

Those. site characteristics: Apache/PHP 5.3

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Lobanov, 2014-02-18
@dkorshunov55

sv-igor.com/ru/javascript/81-script-framekiller.html
I haven't tried it myself. Try testing.

E
egor_nullptr, 2014-02-18
@egor_nullptr

https://developer.mozilla.org/en-US/docs/HTTP/X-Fr...

N
Nikolai Vasilchuk, 2014-02-18
@Anonym

if (window.top !== window) {
    // Do something
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question