Jump to content

is this possible in PHP or its a mystery????


Recommended Posts

Is it possible to password secure a page online (yes that is possible i know) BUT have it unsecured if the web administrator accesses it locally on his CMS....My boss keeps saying he doesnt want to be entering a password if he opens the page inside the CMS. He says he doesnt want to be going through a lot of security checks since he owns the CMS but insists that that should only affect users online.  The simple  script I have is this :

<?php
session_start();
if (!(isset($_SESSION['girls']) && $_SESSION['girls'] != '')) {
header('location: ../mygirls/index.html');
exit;
}


?>

How can i make the above script not work if this demanding boss logs into the CMS and wishes to access the page directly without the script redirecting  him to a log in screen BUt at the same time making it possible for the script to remain working as it is for web users.

Please help me I tried explaining to my boss but he keeps insisting that anything is possible with PHP. by the way he doesnt even know PHP:)

Link to comment
Share on other sites

i think it is quite possible..

one thing is that u check the local lan ip addresses through which u are accessing and then pass the session values if the request comes from a local lan network, but this method is not quite a secured method to use.. :P

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.