Jump to content

EXIT SCRIPT when run .php from Page?


Gayner

Recommended Posts

<-- ajax noob

 

Could you set a cookie/session on the page calling the ajax then check it exists on the lol.php?

 

Can ajax set a cookie before it calls the lol.php?

 

What about checking referrer? (although you could just load lol.php in the browser that has the domain open already?! right?)

make another script for your ajax. lol2.php or something.  Interact with lol2.php for ajax.  lol2.php then calls lol.php as needed.  You can then do any of the following with lol.php :

 

- write a condition to see if request is coming from anything other than lol2.php. If not, GTFO.

- change the chmod on lol.php so only server can access it.  This will allow lol2.php to call it, but not the user.  No custom GTFO per se...

- move lol.php outside of the public web directory (httpdocs, public_html, whatever).  Same thing as above. 

 

 

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.