Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> A Little Webpage Creation Help
Robert83
post Jun 10 2004, 05:31 AM
Post #1


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,


Questions :

I.

How can I password protect a site ? and where do I need to store that password, how do you
do this in a nice way ?


II.

If I use php how can I display time date and stuff like that ? How do you check the type / version of the clients browser and system ?


Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
dlab
post Jun 17 2004, 05:43 AM
Post #2


Grub-er
**

Group: Members
Posts: 30
Joined: 16-June 04
From: California, USA
Member No.: 3,175



There is no real way to prevent people from viewing the source of your page. There are methods like obfuscating the HTML using Javascript, but this restricts the number of browsers that can view it. Also, if someone tries hard enough, you can unobfuscate it in a matter of seconds using its own decoder. eg:

Source of an obfuscated page:
CODE
<html>
<head>
<script language="Javascript" type="text/javascript">
var html;
html = "%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3ETest%20Page%3C/title%3E%0A%3C/head%3E%0A%3Cbody
%3E%0A%3Ccenter%3EThis%20HTML%20is%20obufiscated%21%3C/center%3E%0A%3C/body%3E%0A%3C/html%3E";
document.write(unescape(html));
</script>
</head>
<body>
</body>
</html>


Simple change to give you the HTML:

CODE
<html>
<head>
</head>
<body>
<a id="source" name="source"></a>
<script language="javascript" type="text/javascript" defer>
var html;
html = "%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3ETest%20Page%3C/title%3E%0A%3C/head%3E%0A%3Cbody
%3E%0A%3Ccenter%3EThis%20HTML%20is%20obufiscated%21%3C/center%3E%0A%3C/body%3E%0A%3C/html%3E";
document.all.source.innerText = unescape(html);
</script>
</body>
</html>


If you do this, you will get something like :

CODE
<html> <head> <title>Test Page</title> </head> <body> <center>This HTML is obufiscated!</center> </body> </html>  


If you do get desparate enough, there is a PHP obfuscater that encodes pages that are dynamic so you don't have to stick with static html called IonCube (http://www.ioncube.com/html_encoder.php). Its a PHP mod where you include the PHP encoder and it obfuscates all of the HTML outputted by it.

Think I have said "obfscate" enough?


--------------------
The computer is the ultimate polluter, its s__t is indistinguishable from the food it produces.
user posted image--Found somewhere in the Fortune game.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th December 2017 - 10:09 AM