Page 1 of 1

.htaccess

Posted: Sun Mar 25, 2007 2:00 pm
by user___
Hi guys,
I have a folder containing .php files which are called from Ajax scripts. I have put .htaccess file which bans any access to them and let only the my Host IP to have rights to call them.

I would like to ask whether this will work because Ajax is called from a client so it is supposed to have client's IP which accesses a .php file.

Posted: Sun Mar 25, 2007 3:28 pm
by nickvd
Here's a strange question... have you tried it yet?

Reply

Posted: Sun Mar 25, 2007 3:58 pm
by user___
No, I have not but I will. I have asked because I had though someone had tried it beforehand and can tell me. I will reply in some time whether it works or not.

Any comments are highly appreciated.

Posted: Mon Mar 26, 2007 6:43 am
by aaronhall
AJAX requests are being called from the client, not from the server. You'll effectively block out all access to those scripts.

Reply

Posted: Mon Mar 26, 2007 3:12 pm
by user___
I totally agree.