Forum Moderators: mack
I spend a lot of time and effort researching keywords for my site's pages, and I don't want to leave myself wide open to the competition copying them for their sites.
Can I add a line of html that will block anyone from viewing my source code? If so, can anyone tell me what it is?
Thanks
"A friend called Five"
Your keywords can be viewed by anyone who's reading your site, unless you are obfuscating (which can get you expelled from the search engines), so hiding the source code would only protect the design of the page. Anyone who is into SEO deep enough to be looking at specific page design techniques is more than capable of getting the source code from your site, regardless of how you mask it.
I would be more concerned about people stealing your content than about your delivery of said content. Sadly, the best preventative measure for this is a stern written warning on your site. Then actively pursue thieves by searching for snippets of your own text, and send them DMCA notices.
you could try cloaking your website so a visitor gets one version and a search engine spider receives another therefore the visitor or competition would not see your keywords etc
but be warned this approach is frowned upon by the search engines
2) Your server sends the code to the visitors web browser.
3) The visitors web browser intreprets the code (and, as you will find, there are many different interpretations - but that is another issue) and displays the web page.
4) If you want the visitor to see your web page, then by defualt he has to have your code on his machine.
5) Since he has your code on his machine, he can find a way to view this code no matter what you do.
6) So, There is no way around it. Visitors to your website have access to the code of the web pages you make public.
What you are reall doing is uploading a file fill of code that the users browser will then render into a webpage.
There are things you can do to make it slightly more difficult to view your cource code, but there is really nothign you can do to totaly prevent people lookng through your code.
Mack.
I spend a lot of time and effort researching keywords for my site's pages, and I don't want to leave myself wide open to the competition copying them for their sites.
Eliz.
One thing still puzzles me though:
On some sites I can click view - source, and a notepad page pops up with all the code on it, yet on certain sites I can click view - source and nothing happens, no notepad or anything.
It's as if the function is turned off for certain sites.
Gary