![]() |
How do I hide my source code from copy pasters?
Hey, I'm pretty sure there is a little snippet of code which makes it harder for inexperienced webmasters to snarf html like say metatags or whole freaking pages. Anybody know offhand what that code snippet is? Thanks for any help y'all may be able to give me.
|
check out PK's source. very effective.
|
other than that, there is no way to hide shit.
|
Quote:
:1orglaugh The irony factor of looking at someone's source code in order to figure out how to protect your own is not lost on me. So how do I do that and does that hide anything from search engines, or only from nosy copycats? |
|
Quote:
cough, scroll down on that page. I see it even fooled you. |
Quote:
The thing at the top of that page which says: [an error occurred while processing this directive] concerns me. I don't want my code scrambled, just harder to steal. |
Quote:
Wow. That is fucking inspired. Thank you. |
Quote:
Thank the pussy. |
|
Amelia, you should ask Moof
|
encrypt your html code
|
Quote:
|
That is fucking clever on PK :thumbsup
|
this is what you are looking for... it works very good...
http://www.fantomaster.com/faarticles/cloakmetatags.txt |
Quote:
u mean do this: 'SSI DHTML ERROR 402 - FILE NOT FOUND' then put your html below |
In order for the browser to be able to parse the HTML code to begin with, it has to be send readable code. There is no possibly way to properly "hide" HTML source. If it was hidden then the browser wouldn't be able to read it, either.
There's never anything worth "hiding" anyhow. |
Number One Rule of Computer Science (or at least trying to make money with software): Perfect copy protection is IMPOSSIBLE. As in perpetual motion machines in Physics.
|
dokumenthahahahahahaha(unescape(hex code));
|
Quote:
|
Interesting thread and links. I've often wondered this as well. :thumbsup
|
i use a source block on some sites......i would give it to ya, but i'll let ya find ya it like i did :glugglug
|
PK needs to set that for a bit more than a scroll and a half of the mouse wheel:)
|
I would use a small couch, or a sectional.
|
Quote:
|
Quote:
Thanks! Will do. PS You have to change your sig because it makes me have inappropriate thoughts whenever I see it |
Quote:
I think I know this guy (that developed the script)... |
Quote:
Generally, unless you get dynamic content from a DB, it's impossible to hide code. I mean, you can't steal server-side code, only client-side code. However, you can do some tricks to protect your client side code. You can use includes for the CSS and JS, use several files, includes within includes but this will probably just complicate things and will only help you against newbies. |
Quote:
Thanks, I'll have to take a look at that. I'm really only looking for code snippets which will make it more difficult for inexperienced webmasters to view source. Experienced webmasters will always be able to figure out a way to get around such obstacles, but I doubt I have any code which would be news to anyone who really knows what they are doing. I'm just sick of seeing html, php, and tags etc. obviously copy-pasted from my pages on sites belonging to people too lazy to even come ask a how-to question on gfy. |
http://www.hostedcontent.com/encrypt.phtml
Simply enter the part of the HTML code you dont want people to figure out, paste it into the form then paste the JS it creates into your html code where the content you encrypted should go |
data-encryption.net works well
|
i cant believe that somebody actually fell for that PK trick :1orglaugh
here's what i use.. with perl, wrap your entire code into a variable and run it through sub clean_page($) { my $pp = shift; $pp =~ s/<!-.*?->//igs; $pp =~ s/\t+/ /igs; $pp =~ s/ / /igs; $pp =~ s/ >/>/igs; $pp =~ s/\n//igs; $pp =~ s#\/\*.*?\*\/##igs; $pp =~ s/ "/"/igs; $pp =~ s/ / /igs; return $pp; } it will remove any comments, new lines, tabs etc .. your entire code will be shown in a single line optionally use some JS encryption method for vital parts (as shown in posts above) , and that should do the trick of course its not full proof... :2 cents: |
you could use a form of cloaking, where you give the spiders a copy of one site, but give the public a replica without optimization. some SEO's use these techniques when dealing with sites with frames ect.
just a thought. :) |
I do not know if this is 100% relivant or not, but i have found no matter what is used to hide source codes or protect images from being snaged (Disable right click, cloaking, etc) there is still one way that has and always?? will work.
File/Save As..... This saves the whole page then all one has to do is open it with html or text editor to see the source code. Now ok so lets remove the file bar from the page. Now all the surfer has to do is go back a page and then open your page in a new browser window thus giving them back their file bar. So really i think if someone wants your code their gonna get it. right? I find it best to put all my secret stuff in a swf file but now theres a decompiler so even that way is phucked lol -Loki- |
Quote:
Someone who can decompile a swf file is probably not going to be trying to grab my code because there won't be much of interest for someone that sophisticated there I don't think. Oddly, we used to use the disable right click on a lot of our sites. We've removed it every place it was in an include, but there are still a few old galleries we haven't changed yet and there actually are a lot of people who can't figure out how to get around it, even now. |
Quote:
In her case tho, it does show the code on 1600x1200. She needs to add some more space. |
Do engines even use meta tags anymore? Google seems to go buy title and page text.
|
Quote:
Wow man i think the file/save as was one of the first things i learned lol, back when i first started doing design work lol, i find it odd that more ppl don't know about it. -Loki- |
You'd be amazed at the number of emails I've gotten over the years asking ..
"How do you do that?" |
Quote:
If you want an actual HTML encryption program that will be sure to knock any webmaster off their feet, check this out: http://www.mtopsoft.com |
If you think that PK thing is amazing, how many webmasters do you think will be able to crack the HTML to this page:
http://www.mtopsoft.com/encryptpro/example.htm :1orglaugh |
Quote:
|
Quote:
If you want your search engine ranking unaffected, please select "Only encrypt partial section" or "Do not encrypt html source code" in Step 2. Otherwise, the search engine can't cache your page correctly. The "Encrypt all links" will also affect the search engine: Search engine spiders can't index other web pages linked by this page." |
Quote:
Quote:
:winkwink: |
Quote:
And actually. I saved the page in IE and opened just the html in my browser and got the same thing. No encryption. |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -7. The time now is 04:07 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123