Jump to content

Hide source page address?


5kyy8lu3

Recommended Posts

Hi.  This is a weird question and I'm not sure php can even resolve this, but here it goes:

 

Right now, when I goto my site, you see www.kloudz.com/

 

it doesn't show the actual index.php file in the address bar

 

but after i log in and it sends the user to "logged.php" using the header("Location= "); the adress bar shows the location and name of the php file like so:

 

www.kloudz.com/logged.php

 

This bugs me.  is it possible to keep that hidden?  i tried using header to send the browser to a new directory so I could use the index.php in that directory to keep the file name hidden but it seems to be resetting my session variables when i do that.

 

any ideas? i'm only doing it for security reasons, so if you think it doesn't matter either way, that's a perfectly legit answer to me =)

 

thanks

Link to comment
Share on other sites

You could keep everything on the index page and pass around the pages you're actually using in the address bar for example, but there's no real point.

 

You shouldn't be relying on security through obscurity: don't assume that someone wont find a page of your site - don't let them access it at all.

Link to comment
Share on other sites

Hello,

 

I've tried htaccess, it never works for me. I wanted to stop someone copying the address from the browser, then pasting it in a new window. all htaccess did was stop everything working.

 

I think the answer lay in utilizing other functions offered by php. I use require once, move and delete file.

 

the correct use of the above with a correctly designed login script stops direct access, and will make it difficult, to access the file.

 

I think that it depends on what your looking to protect, if it's that important then even a 128bit encryption wont stop a very determined hacker.

 

DG

Link to comment
Share on other sites

ok thanks, after i posted this i thought about it some more and realized that even if i sent it to a new directory, anyone with half a brain would know the file is index.html or index.php so i guess it doesn't matter, i'll just have to use other methods to stay "secure" like filtering my form inputs lol

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.