View source ( declined )
How can you actualy stop someone from viewing your source code
i have a page i would like to block the source code its something people will
want to cut and paste - i want it be unique to the website
ie < you are not permitted to view this information > or the website declined
to show this infornation
ive read it cant actualy be done
From what I know, reading the source code of the page is a functionality of the browser. A code in the page cannot block this functionality.
Hi there jase,
If you have to ask this question, then you may rest assured that there is
How can you actually stop someone from viewing your source code
absolutely no code in your website that anyone will want to use.
You are just experiencing a mild attack of paranoia.
Certain mind bending drugs may produce this state as a side effect.
Not that I know of -- but I do know that server-side code doesn't get rendered in the browser source code...directly
like PHP, ASP and the others.
<?php //you will never see me in 'view source'!!! ?>
this will indeed be in the source:
<?php print "<p>hello</p>"; ?>
just make the code ugly (obfuscated+minimized), and it won't get stolen. to prevent someone from simply pasting the garbled mess, you can hide something in the code that checks to make sure what site the script is running from.
while technically you cannot hide client code, you practically can in the world of dumb and lazy coders who want quick cut-and-paste solutions.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)