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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.