lotfi17 Posted November 20, 2006 Share Posted November 20, 2006 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 More sharing options...
Orio Posted November 20, 2006 Share Posted November 20, 2006 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. Link to comment https://forums.phpfreaks.com/topic/27858-protecting-my-site-undersite-links/#findComment-127501 Share on other sites More sharing options...
roopurt18 Posted November 20, 2006 Share Posted November 20, 2006 You could also look into using mod_rewrite. Link to comment https://forums.phpfreaks.com/topic/27858-protecting-my-site-undersite-links/#findComment-127542 Share on other sites More sharing options...
lotfi17 Posted November 21, 2006 Author Share Posted November 21, 2006 Wish for some more details, still can't figure it. please n00bie can u give more detail about the mode_rewrite. thanks Link to comment https://forums.phpfreaks.com/topic/27858-protecting-my-site-undersite-links/#findComment-127778 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.