Jump to content

php file accessible only from specific destination


greekuser

Recommended Posts

hello,

 

i have a little problem with one eshop i have made

and credit card payments are send to a bank secure site.

 

everything works ok, but the bank asked me for a validation.php file

to be on the eshop that sends an ok in order to complete the payment.

 

what i want to do is to limit the access to that php file

so that it can be accessed only by direct request and only from the bank site url

 

i dont want to be accessed by anyone else.

 

the reason is that the validation.php makes a query that i dont want the result (even if it is a simple ok) to be known to anyone else but the bank

 

can this be done within php or with a .htaccess modification  ???

 

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.