I made it on the.htaccess file who is the best security, I think...
Here is how:
Suppose you have your folder "invoice" on www.yoursite.com
Suppose your Security payment system is https://sssl.security.com
(look at the "s" from https)
To be sure that nobody can't open the folder "invoice" and play with your php files or .jpg or .html files, make a .htaccess inside the "invoice" folder as follow:
SetEnvIfNoCase Referer "https://ssl.security.com/" local_ref=1
<FilesMatch "\.(html|php)">
Order Allow,Deny
Allow from env=local_ref
</FilesMatch>
And you get it. Only Mister Mitnick and his friends could crack it !!!
Marc-André
webmaster of http://www.ambilao.com/
😉