/    Sign up×
Community /Pin to ProfileBookmark

hiding source code

hi everybody. i am using gmail and when i tried to right click -> view source , anything is occur. if i click more than 6-7 , sometimes view source is displayed.
it is only occur in gmail!

why ?
if is it gmail protection, how i do this to my page?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@toicontienJun 29.2007 — If gmail is preventing me from right-clicking, it's another good reason to not use it. The right-click menu provides additional functionality, like opening links in new tabs or windows. No one's HTML, CSS or JavaScript is special. You are not a beautiful and unique flower... as the Fight Club movie quote goes. All you'll do is annoy normal users and cause people like me to click "View" and select "Page Source". The people who want to steal your code will know how to steal it. That's just life.

I've found that people who want to hide source code have nothing worth hiding -- and I'm speaking from experience here too. I used to wonder how I could hide my source code, but quickly realized it's like throwing a bucket of water at the sun to cool a hot day. You see it in your browser. You have all the source code and images. No way to hide it. Sorry.
Copy linkTweet thisAlerts:
@felgallJun 29.2007 — You only need to enter one simple command to kill the no right click and get the menu back.

http://javascript.about.com/library/blright.htm
Copy linkTweet thisAlerts:
@TJ111Jun 29.2007 — If you use firefox (if your on this forum and you don't your crazy), there's an option in the :config file to disable no right click scripts. Also I think the webdeveloper toolbar has an option to turn it off.
×

Success!

Help @futi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...