Jump to content

Protecting my site undersite links


lotfi17

Recommended Posts

Hei evreybody, and thanks for the great forum. As I mentioned in subject, would like to hide my site underlinks exempl: www.mysite.net is the main page, when I log in to my chat site the adress appears: www.mysite.net/[b]chat.php[/b] . My question is: is it possible de crypt or hide /[b]chat.php[/b]? In advance many thanks  :).
Link to comment
https://forums.phpfreaks.com/topic/27858-protecting-my-site-undersite-links/
Share on other sites

You can have an invisble frame, so the URL wont change (easy to trick), or you can use some PHP:
You can keep the same strucure for your site, but you need to make an extra php file (lets call it show.php). show.php recieves (using $_GET for an example) a page id. That means you need to give every page an id. Let's say the chat's id is 10 so it will be show.php?id=10.
Now, show.php is going to switch the value of $_GET['id'], and include the file it needs- in our example, if the id is 10,  include("chat.php").

Hope it helps :)

Orio.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.