Current location: Hot Scripts Forums » General Web Coding » JavaScript » Disable the Source link in View menu


Disable the Source link in View menu

Reply
  #1 (permalink)  
Old 03-31-05, 05:08 AM
mohank mohank is offline
New Member
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Disable the Source link in View menu

hi all,
i want to block the user to see my coding's.There is 2 way to see our coding.one is using right click and select view source.another is goto view--source.
i blocked the right click in my pages.is it possible to disable the view source in view menu?
guide me in this issue
thx
mohan
Reply With Quote
  #2 (permalink)  
Old 03-31-05, 05:14 AM
Crim Crim is offline
Newbie Coder
 
Join Date: Mar 2005
Location: England
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
well this isnt some high tech coding im going to give you however im hoping you know what im going on about when i say this, make an iframe put your content in that then disable the right click in that, this will then if they go to view source will just give them the coding to your site layout and links etc but not your content

i hope it is your content your going on about if so this should work because as far as i know there is no way to block you from going to view-source
Reply With Quote
  #3 (permalink)  
Old 03-31-05, 06:09 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
Quote:
make an iframe put your content in that then disable the right click in that, this will then if they go to view source will just give them the coding to your site layout and links etc but not your content
the user will find something like:
Code:
<iframe src="file.html"></iframe>
so I can take file.html and put in the URL bar and get the file..

I'll tell you Mohank, there is no way to hide your source code! you will be only delaying the user from viewing the source but not preventing him..
take a look here at this discussion:
http://www.programmingtalk.com/showt...ht=hide+source
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #4 (permalink)  
Old 03-31-05, 10:37 PM
mohank mohank is offline
New Member
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
thx a lot

hi friends,
thx a lot for u r mail

mohan
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
disable view souce? hptone JavaScript 19 11-15-06 08:09 AM
link to iframe//help moose JavaScript 1 01-29-05 12:26 PM
View link code anthegreat PHP 0 01-14-05 10:24 PM
View Source of an web page dihan PHP 9 07-07-04 06:02 AM
I need a script that will disable the menu bar (file, edit etc).. Master-Chemist JavaScript 3 03-09-04 02:18 AM


All times are GMT -5. The time now is 10:44 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.