I've 3 programs running on wampserver located on our intranet.

I must block the access of programs for any certain ip range. And So I edited .htaccess files for every application as below. However the application isn't blocked.

order deny,allow allow from 10.212.4. deny all

After checking the logs I discovered the ip the customer coming back was different. Since all of our machines use proxy configurations automatically.

Anybody may help me how you can over come this ?

You should use mod_rewrite to bar people according to their "x-submitted-for" header. I wouldn't think about this secure though, since these are simple to forge.

Begin to see the discussion here: