1224 Posted June 10, 2011 Share Posted June 10, 2011 (edited) Can I make the .php page can only receive the HTTP request from AutoIT only? Edited June 10, 2011 by 1224 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted June 10, 2011 Share Posted June 10, 2011 AutoIt has it's own useragent name, maybe that can be used to 'isolate' it. One can also set that useragent name to something other than the default.HttpSetUserAgent - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
FireFox Posted June 10, 2011 Share Posted June 10, 2011 AutoIt has it's own useragent name, maybe that can be used to 'isolate' it. One can also set that useragent name to something other than the default. HttpSetUserAgent Then on the server side, just check for the useragent with php : if($_SERVER['HTTP_USER_AGENT']!='myuseragent') {exit();} //if the useragent is different than "myuseragent" (set it with th function httpsetuseragent //your code here If you want to send post requests then the is what you want. Br, FireFox; Link to comment Share on other sites More sharing options...
1224 Posted June 10, 2011 Author Share Posted June 10, 2011 Thanks all, the problem is fixed Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now