Jump to content

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. 

 

 

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.