We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
I'm looking for a solution to restict the use of the http server to one specific IP. There is only one well kown client which should have access to our http server. On the other hand there are some kind of scanner running on the net which should be blocked. My goal would be to ignore incoming IP packages which has a different IP than the well kown client.
From my point of understanding of the TCP/IP stack, I need access to the IP level to implement the described functioanlity. It seems that the TXPNet lib dosen't support this kind of low level access.
Are there any other approches to solve the described problem with the TPCNet lib?
maybe this can help
http://www.keil.com/support/man/docs/rlarm/rlarm_http_get_info.htm
Hi Tamir
Thanks for your response.
I had also the http_get_info routine in mind to solve this problem, but I couldn't figure out a scenario how this routine could be helpful.
If I would use this routine after a cgi_process_var, cgi_procces_data or cgi_func() call, it is to late ( Because there was already some transaction). By the way the request of the main page (index.htm) doesn't result in such a function call. Thats way I think I have to ignore incoming packages on IP level.
then you need the source of TCPNet, I think.
The new release (V3.12) of the TCPNet lib includes a new function called http_accept_host() which will solve my needs.