SImple Help php

Hi!
I’m new to php so, please forgive if this is a really simple question or if it doesn’t make sense.

I have an www.domain.com web site and then I have an microprocessor at home connected to the internet also hosting and simple page. That page is acessible from the internet.

When I’m browising on my www.domain.com i want to add an botton that sends an request to the microprocessor, right now what i do is when the button is clicked, it opens the microprocessor page like : microprocessor.ddns.net/?update=1.

How can i make the www.domain.com send the “?update=1” to the microprocessor without the user have to see the microprocessor page.
The main purpose is to hide the microprocessor address so it’s harder to be hacked…

Thanks for the help!

I would go with an JavaScript page that is sitting behind the public html directory. Pass the value through Ajax to the JavaScript page and no one is the wiser as to what it goes to.

I would do this

Web server // users can see everything from here: -> Display website with button -> User clicks button Javascript Ajax request -> update.php?id=1 // to here -> server side request // everything from here on is "invisible" -> microprocessor.ddns.net/?update=1

Please note that you also need to validate any requests.

And in general this is considered “security by obscurity”, which isn’t recommended. I do however see the point in hiding microprosessors as it’s easy to knock them offline or figure out where you live…

Sponsor our Newsletter | Privacy Policy | Terms of Service