Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7190913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:37:06+00:00 2026-05-28T19:37:06+00:00

I am trying to hide my websites cms application… So i thought i would

  • 0

I am trying to hide my websites cms application…

So i thought i would add a bit of php to any random page on my site, that includes a GET referance to some random string… So basically, if you go to x page, and add ?RANDOMSTRING the cms index is included. This is stored above the web root… Here is the peice of php:

if (isset($_GET['J7sd-H3sc9-As3R']))
{
require_once($docRoot . '/../../includes/admin/index.php');
}

Basically, index.php is laid out as a page with 3 fieldsets. In the 3 field sets are various links relating to various applications that deal with various tasks. They were accessed through the same means as the above code. And they were held in the web root and were able to be accessed via http…

That all worked perfectly fine, But the problem now comes when i try to access any specific part of the cms…so what would have been:

http://www.mysite.com/admin/part/

is now:

include($_SERVER['DOCUMENT_ROOT'] . '/../../includes/admin/part/index.php');

Or something of the sort…

So now when i go to my page at

http://www.mysite.com/randomDirectory/

and add:

http://www.mysite.com/randomDirectory/?J7sd-H3sc9-As3R

I get sent to my cms… Cool… But when i try to click on any section i get this header:

http://www.mysite.com/randomDirectory/?part

and the page gets refreshed to:

http://www.mysite.com/randomDirectory/

If that makes sense…

Could any provide me with any input or suggestions regarding the task that i am trying to accomplish? I am not sure if it is even possible to start off with, but it seems simple enough.

Any replies would be greatly appreciated, Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:37:07+00:00Added an answer on May 28, 2026 at 7:37 pm

    I guess you should append at the end of every link in your page something like

    <?php if (isset($_GET['J7sd-H3sc9-As3R'])) echo '?J7sd-H3sc9-As3R'; ?>
    

    Example:

    http://www.mysite.com/randomDirectory/randomPage<?php if (isset($_GET['J7sd-H3sc9-As3R'])) echo '?J7sd-H3sc9-As3R'; ?>
    

    edit

    An easier way to do this would be to use sessions, in this way:

    <?php
    
    session_start();
    
    if (isset($_GET['J7sd-H3sc9-As3R']))
    {
        $_SESSION['token'] = 'J7sd-H3sc9-As3R';
    }
    
    if (!isset($_SESSION['token']) || $_SESSION['token'] !== 'J7sd-H3sc9-As3R')
    {
        exit;
    }
    
    // go on with your page
    
    ?>
    

    In this way, when you open a page with your token in the url, the session is started and the token is saved in the session, so it should work without the need to insert the token in every url until you close your browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website in PHP, and I'm trying to hide the extension. I've
I am trying to hide/unhide some table cells o a page, and I find
I'm trying to hide the .php extension from my files as well as force
I am trying to hide the extensions of my scripts like .php or .html,
trying to hide a panel of Master Page in my content page using the
I am trying to hide some divs before the user prints this giant form,
I'm trying to hide the Title field in a list. This doesn't seem to
I am trying to hide the button based on the user's role using the
I'm trying to hide window after its startup. I have own window-class which is
I'm trying to hide actual sub-directory from url path using mod_rewrite. The folder actual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.