Jump to content

Ajax call to local page in folder with CHMOD 700


xtopolis

Recommended Posts

If I have a directory structure such:

 

[main (./)] (public)

|  index.php

|__

    [hidden (./hidden)]CHMOD 700

      script.php

      another.php

 

And I want to have index.php ajax enabled to make calls to script.php, in order to access functionality inside that page that I don't want to be access publicly...  but I receive 403 Forbidden errors.

 

Now, obviously, 403 is what I would expect trying to access it via the FQDN/hidden/script.php

But in my ajax I'm calling it as simple /hidden/script.php...

 

So is there a way using ajax to access my local folders that aren't publicly viewable?  Or do I have to use a workaround/(if do it at all) of using a php script in (./) to access those /hidden/ pages?

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.