Masking URL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
emilcarlo
Forum Commoner
Posts: 43
Joined: Wed Jul 21, 2010 12:38 pm

Masking URL

Post by emilcarlo »

Good evening,

I know this is a real noob question. What I want to do is mask the url of my internal website. I have searched around the net on how I will be able to achieve this, but most have opposed on that trick. What happens is, after my login is validated, the main page is opened up. However, when I tried the url when it opened the page, it bypassed the login page T_T the only way I can think of is to mask the url T_T
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Masking URL

Post by AbraCadaver »

No, you check to see if they are loggedin on pages that require them to be loggedin, such as the main page. If not, redirect them to the login page.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
emilcarlo
Forum Commoner
Posts: 43
Joined: Wed Jul 21, 2010 12:38 pm

Re: Masking URL

Post by emilcarlo »

AbraCadaver wrote:No, you check to see if they are loggedin on pages that require them to be loggedin, such as the main page. If not, redirect them to the login page.
Thanks Abra for the prompt and fast reply, I really appreciate it. However, I'm a low level php programmer and needs guidance. I understand what you said, but I am afraid I don't know what to type in the google. I hope you can help me, thanks very much.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Masking URL

Post by AbraCadaver »

What code are you using to log someone in? You need to find a PHP tutorial on user authentication.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
emilcarlo
Forum Commoner
Posts: 43
Joined: Wed Jul 21, 2010 12:38 pm

Re: Masking URL

Post by emilcarlo »

I found this one out, and somehow I am able to comprehend how it was written, though I am still in the process of absorbing how everything is working http://swish-db.com/tutorials/view.php/tid/601
emilcarlo
Forum Commoner
Posts: 43
Joined: Wed Jul 21, 2010 12:38 pm

Re: Masking URL

Post by emilcarlo »

I think it's working now ^^ Thanks for your time :)
Post Reply