I have a web page that has a simple HTML form in it, like so:
<form method="POST" action="/something"> <input type="text" name="something"> <input type="submit" value="Send"> </form>
When the Server this is hosted on is reachable both over IPv4 and over IPv6, is there a way I can force this HTML form POST to be done over IPv4, without changes to the webserver?
If I try
22.214.171.124/something as the action, that'll fail as the host header is missing. And if I create a subdomain like
v4.example.com that just has the IPv4 address (and then use
v4.example.com/something), that'll fail as that subdomain won't be included in the apache config and won't be assigned to that vHost.
Can I somehow, just by modifying the HTML form, make the client send that form over IPv4? Or do I have to make changes to the Apache config to do that?