question?


1

I want to disable ==) all keyboard keys or Ctrl+U (View source page function) in javascript if it possible,,, I try a Lot of codes but it didn’t work… it’s possible?!!

10replies
3voices
223views
2images
Cyan Wind [freewind1012]
10 years ago | edited 10 years ago

1

Disable View Source completely? No.
Disable keyboard or right click? Yes, it’s possible. However, it’s a totally bad idea for user experience.


1

disable mouse-right click I know it my friend…. but I want to hide my source page.


1

let me say a code… to disable keyboard if U want…

Cyan Wind [freewind1012]
10 years ago | edited 10 years ago

1

Want to disable keyboard? Yeah, it’s possible. Just google it.

However, have you ever thought about F10 > Tools > Web Developer > View Source in Firefox or Tools > View Source in Chrome? There’s nothing JavaScript can do to prevent that.


1

You are right, I thought about it … but I want to hide the source of the page as much as possible … so I thought about encrypting the source … but it a madness.

Cyan Wind [freewind1012]
10 years ago | edited 10 years ago

1

Obfuscate JavaScript is your last bet. If you really need to hide something, hide it server-side.

Reply has been removed

1

i don’t understand what u mean with server-side, i want to hide an index not a page in my web….. thank U.

3 replies have been removed
[deleted user]
10 years ago | edited 10 years ago

1

Hi rekcah.ronoh, what freewind1012 means with server-side is where you upload the files to. The ftp location in the server-side like if you use php then that can’t be read by someone looking at your source file on the web as php is only saved and implimented from the server-side. Not on your browser and your machine. Okay? I think you might have to use php and not javascript to disable the keyboard and like. Also think about creating a file in assembly and use that.


1

Okay ANONRA…. THANK U. Image


2

and THANK U TO freewind1012 Image

Discussion thread has been locked. You can no longer add new posts.
1 of 11

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss