Welcome Guest ( Log In | Register)



3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Protect Pages, HOW?
alex1985
post Mar 19 2008, 07:53 AM
Post #1


Super Member
*********

Group: [HOSTED]
Posts: 387
Joined: 9-February 08
Member No.: 57,615



I create certain pages for my web-site, and I would like to protect them that no one can hack or see their source codes.

So, if everybody knows how to do it, please post a reply over here. List of the best ways, I can do it.

Thanks.
Go to the top of the page
 
+Quote Post
sonesay
post Mar 19 2008, 07:59 AM
Post #2


|||[ n00b King ]|||
*********

Group: [HOSTED]
Posts: 642
Joined: 20-June 07
From: Auckland
Member No.: 45,102



Any one who has access to the web server will have access to your files you store there. Once downloaded or viewed without being parsed by PHP the source code is viewable so there is no way to encrypt your source doe from that.
Go to the top of the page
 
+Quote Post
rvalkass
post Mar 19 2008, 08:05 AM
Post #3


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,052
Joined: 28-May 05
From: Hertfordshire, England
Member No.: 7,593
Spam Patrol



Any server-side scripting (such as PHP) will never be seen by visitors to your site as long as PHP is running on the server. The HTML output, however, is obviously visible, and there is very little you can do to protect that. All the code must be able to be understood by the browser, and therefore there will be an easy way for a visitor to see the plain HTML source code.

As long as your PHP is well written (clean any user input, sanitise database inputs, etc.) then you should have nothing to worry about.
Go to the top of the page
 
+Quote Post
alex1985
post Mar 19 2008, 08:18 AM
Post #4


Super Member
*********

Group: [HOSTED]
Posts: 387
Joined: 9-February 08
Member No.: 57,615



All right! But some web-sites has pages like "dsjdsb" or some another symbols at the end of web address. That's looks good.

Because, I link my pages like in HTML. For instance, if you wanna go to the home page, you click on the link "Back", and when you actually pressed it, the user can see the file: "index.php". In other words, I wanna avoid this problem, and that's why I am asking for some protection of the pages. Just list the choices what can be done about it.
Go to the top of the page
 
+Quote Post
truefusion
post Mar 19 2008, 01:26 PM
Post #5


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,861
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528
T17 GFX Crew



QUOTE(alex1985 @ Mar 19 2008, 04:18 AM) *
Because, I link my pages like in HTML. For instance, if you wanna go to the home page, you click on the link "Back", and when you actually pressed it, the user can see the file: "index.php". In other words, I wanna avoid this problem, and that's why I am asking for some protection of the pages. Just list the choices what can be done about it.

Hmm? You mean you don't want them to see what kind of server-side script you're running? You might want to look into mod_rewrite for the Apache server. With this, you can make your URLs appear like if the browser is accessing an HTML file, when really it's accessing a PHP or ASP or JSP, etc, script. Either that or give your HTML pages the ability to process PHP scripts.
Go to the top of the page
 
+Quote Post
alex1985
post Mar 19 2008, 03:17 PM
Post #6


Super Member
*********

Group: [HOSTED]
Posts: 387
Joined: 9-February 08
Member No.: 57,615



SO? How you do it?
Go to the top of the page
 
+Quote Post
rvalkass
post Mar 19 2008, 05:42 PM
Post #7


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,052
Joined: 28-May 05
From: Hertfordshire, England
Member No.: 7,593
Spam Patrol



Try searching for "mod _rewrite" for a tutorial:
search:mod_rewrite
search:mod_rewrite tutorial

Also try these links for some help:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
http://www.ilovejackdaniels.com/cheat-shee...te-cheat-sheet/
Go to the top of the page
 
+Quote Post
alex1985
post Mar 21 2008, 12:27 AM
Post #8


Super Member
*********

Group: [HOSTED]
Posts: 387
Joined: 9-February 08
Member No.: 57,615



So, that pages might help me? What the "mod_rewrite" exactly do or for what is used?
Go to the top of the page
 
+Quote Post
jlhaslip
post Mar 21 2008, 01:24 AM
Post #9


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,874
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



QUOTE(rvalkass @ Mar 19 2008, 11:42 AM) *
Try searching for "mod _rewrite" for a tutorial:
search:mod_rewrite
search:mod_rewrite tutorial

Also try these links for some help:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
http://www.ilovejackdaniels.com/cheat-shee...te-cheat-sheet/

Have you read these links/tutorials yet?