I have a question: is it possible to "hide" some divs (like the ones containing form info/action) from the source code? I was thinking about calling the code from another file, but I'm not sure about how to do it properly.
Thanks in advance!
Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.
Note: I'm aware you can never completely hide the source code of a page, but my goal is to hide some elements from the basic "display source code" (ctrl + u). This to prevent "normal" visitors from seeing what really happens on a given page.
As you can see, it calls another page. So when people view the source, well they don't see much. They could follow the links to view each source, but they just don't do it.
Oh well I guess I'll do it with an iframe, but it will probably look like shit. :<
So here's what I did... simple but it does the job ("view source" doesn't show the form details. If they want the details they can get them by opening the real page, but most visitors who would fall for this scam probably won't do that).
Why a frameset 100% and not an iframe? Just because I had some ugly white border around the page with the iframe (set to 0 but it was still showing, I guess iframe was not defined in the css, but the frameset was the easiest solution I found).
Be nice, enjoy MMOwned as a community, and the emu section is da bomb. Need help with emu? Post in the Questions forum and I will answer your replies as soon as I come online!
PhP won't help. IT executes a code and "converts" it to html, so you do <?php include('register.php'); ?> and when it loads, you get it like a normal source.
PhP won't help. IT executes a code and "converts" it to html, so you do <?php include('register.php'); ?> and when it loads, you get it like a normal source.
YOu don't know what you are talking about :P
PhP is very useful. Quick example to hide things would be a mySQL login, it won't show the username and password to the client, as it's not rendered, yet the php will still be logged in, able to manipulate the database, without the client ever knowing.
PhP is very useful. Quick example to hide things would be a mySQL login, it won't show the username and password to the client, as it's not rendered, yet the php will still be logged in, able to manipulate the database, without the client ever knowing.
The both of you don't know what the shit you're on about. PHP is serverside; 't interprets the PHP, and - if scriptdifined- outputs HTML.
Hellgawd, quit acting as if you know what you're talking about. "This is mine", "that, I made"; you couldn't write even the simplest of PHP several weeks ago, we have no reason to believe you can now.
On-topic: Your best bet may be using the unescape() Javascript function. This might offer you véry basic protection, but someone that has more intellect than 2 bags of rocks can and will easily find a way around it. You may find[Only registered and activated users can see links. ] to come in handy.
Why would you want to hide your source? And it is impossible to completely hide it anyway.
Edit: You could try to crypt your source. Even a simplest php replacing script will slowdown ppl a bit from reading your source.
Edit2: Just made a test, I turned this string of text
Code:
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
Using preg_replace only. Now add in stuff that plays around with the string even more and you have quite random text.
Of course, if you just invert the replacer and echo a string, it will show the source in it's real form. Figure something to avoid that and you're done.