First of all sorry if my question is dumb or if I use bad terminology but I'm totally new to web programming.
So, I've made an apache server on raspberry pi with few buttons on the webpage to controll lights in my room. I can access it with my home network ip 192.168.xxx.xxx and from internet using my public ip 188.75.xxx.xxx. (just to be clear - the raspi is connected to my router and in the router I'm forwarding port 80 to it)
I want to make some basic login form, but only if I'm connecting trough the 188.75.xxx.xxx ip. And if I'm conencting trough the 192.168.xxx.xxx the form will not show.
Is there any way to achieve this? Thanks, Adam N.