M
M
Morozov_Evgeny2020-06-29 13:08:24
Data protection
Morozov_Evgeny, 2020-06-29 13:08:24

What library/plugin is used to protect the page from viewing the source code?

There is a site dekuzu.com

Here is one of its pages:
https://www.dekuzu.com/ru/2020/02/sell-phone-infri...

I want to see the source code of the page. I'm using Chrome 83.0.4103.116 (Official build), (64 bit)
It doesn't work.

How did they manage to disable:
* right mouse button
* CTRL+U
* F12

This is the first time I've seen this.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
robprane, 2020-06-29
@Morozov_Evgeny

The site just catches clicks. You can still view the page code by adding view-source: before the link, and open the console through the menu. Protection from the very lazy.

H
hzzzzl, 2020-06-29
@hzzzzl

they are just hacks,
open the developer console through the browser menu, there is a script right in index.html
5ef9be94de73b027667100.png

How did they manage to disable:
* right mouse button
* CTRL+U
* F12

window.onkeydown = function(e) { 
  // какую кнопку юзер нажал?
}

S
Sergey Karbivnichy, 2020-06-29
@hottabxp

This site was made by mom's programmers. Accumulated "protection" from the Internet and it's done) I do not advise you to do this, you will lose users.
Additional Tools --> Developer Tools:

spoiler
5ef9c5395b4e6897377240.png

"Explore" "protection" further. We take curl or (in my case python), do not add headers and do not change the user-agent. Making a request:
import requests

response = requests.get('https://www.dekuzu.com/ru/2020/02/sell-phone-infringe-copyright.html')
print(response.text)

spoiler
5ef9c68aacde7663363452.png

As you can see, this is "protection" from housewives. But why should they copy it, xs.
What library/plugin is used to protect the page from viewing the source code?

You generate a picture from the text on the server, "decorate" it with watermarks and give it to the user. Who will use this site? - That's another question :)
Attention! Not to look nervous!
5ef9c758dfd40050533404.png

T
ThunderCat, 2020-06-29
@ThunderCat

5ef9c42ad0f32272244683.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question