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
 
Reply to this topicStart new topic
> 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
Corey
post Jun 10 2004, 07:45 AM
Post #2


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

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



For password protecting a site, check out Joey's htaccess guide:

http://www.linuxhelp.ca/guides/htaccess/


To display date and time in php, check out the following link:

http://www.wdvl.com/Authoring/Languages/PHP/Date_Time/

To acquire a visitor's browser and OS, use php's get_browser function described in the php manual here:

http://ca.php.net/manual/en/function.get-browser.php

The php manual is a really good resource because not only are all things php explained by the developers, but there are also comments from users with code examples, etc.


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post
Robert83
post Jun 10 2004, 08:57 AM
Post #3


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

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



Hi,

thanx smile.gif

it works it's cool, and here another question,

is there a way to disable the viewing source of the webpage somehow ? (I already managed to disable right clicks)

how can one hide page names , example (I can't explain this any other way)
http://192.168.2.250/univer/univer.php
only show
http://192.168.2.250
so I wouldn't show /univer/univer.php or any other things only http://192.168.2.250

how can one change that default HREF onmove icon , I mean that hand ...anoying hand, I'm using a cool Starcraft cursor on my page, and I'm also using flash, is there a way to tell IE somehow to use that starcraft cursor even when I hold my mouse over a button or when I hold my mouse over a flash thing

and do you know a good cgi counter with good install instructions, since I just installed one but it wouldn't show up at all...


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
Corey
post Jun 10 2004, 10:50 AM
Post #4


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

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



You can accomplish that by using frames. Just create one frame, and the url should never change.

Another option is to sign up with cjb.net which will do that for you.


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post
dlab
post Jun 17 2004, 05:43 AM
Post #5


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
hughesjr
post Jun 18 2004, 05:34 AM
Post #6


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

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



One thing that I would like to point out is that dynamic pages (like .php, .asp, .cfm, etc.) display the rendered page, not the programming code. (although scripts embedded in the html are displayed).

so you don't see the:

CODE
<?php
 echo "<b>whatever</b>";
?>


you only see:

CODE
<b>whatever</b>


in the page code.
--------------------
also ... if you make it hard for spiders to crawl your pages, the page won't make it into google and other search engines.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

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: 15th December 2017 - 11:10 AM