FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
HTML-Guard/example/example.html at main · DosX-dev/HTML-Guard · GitHub
DosX-dev
/
HTML-Guard
Public
Notifications
You must be signed in to change notification settings
Fork
7
Star
75
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
HTML-Guard
/
example
/
example.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (32 loc) · 1.12 KB
Breadcrumbs
HTML-Guard
/
example
/
example.html
Copy path
File metadata and controls
46 lines (32 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!-- Example of HTML-Guard protection -->
<!DOCTYPE html
>
<
html
>
<
head
>
<
script
src
="
../html-guard.js
"
>
</
script
>
<
script
>
// PROTECTION: Disable DevTools
HtmlGuard
.
protections
.
antiDevTools
(
)
;
// PROTECTION: Disable context menu
HtmlGuard
.
protections
.
blockContextMenu
(
)
;
// PROTECTION: Disable drag
HtmlGuard
.
protections
.
blockDrag
(
)
;
// PROTECTION: Disable selection
HtmlGuard
.
protections
.
blockSelection
(
)
;
// PROTECTION: Disable console output
HtmlGuard
.
protections
.
blockConsoleOutput
(
)
;
// ADDING: Add link to 'style.css'
HtmlGuard
.
loader
.
loadStyleByRef
(
"styles.css"
)
;
// ADDING: Run 'test.js' script
HtmlGuard
.
loader
.
loadScriptBySrc
(
"test.js"
)
;
</
script
>
</
head
>
<
body
>
<
div
>
<!-- '_id' is protected variant of 'id' -->
<
p
>
Hello, world! Time:
<
span
_id
="
time
"
>
</
span
>
</
p
>
<!-- '_src' is protected variant of 'src' -->
<
img
_src
="
test.jpg
"
_alt
="
Test image
"
/>
</
div
>
<
a
_href
="
https://github.com/DosX-dev/HTML-Guard
"
>
HTML Guard in GitHub!
</
a
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL