How to find ip address in netlify - netlify

I have a website deployed in Netlify and I have a form that submits a POST request to a webhook in Integromat.
The webhook works but I want to add IP restriction to the webhook so that no else can use the webhook. Integromat is asking for an ip but I can't seem to find what ip address to use, is there a way to find the ip I need like in Cpanel?
I tried using my domain e.g website.com or https://www.website.com. And I got a 400 error.
I also tried using netlify's load balancer ip 104.198.14.52 and it didn't work :C.
I tried an online dig tool and I got something like:
id 25009
opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
staging.socialspacecoworking.com. IN A
;ANSWER
staging.socialspacecoworking.com. 3599 IN CNAME socialspacecoworking-web.netlify.com.
socialspacecoworking-web.netlify.com. 19 IN A 142.93.122.177
;AUTHORITY
;ADDITIONAL
But the thing is if I try to run dig a couple times. the address 142.93.122.177 will change to something else.
Thank you so much,

Netlify (and similar services like Heroku, etc) uses rotating IPs, so this likely won't be possible.
An alternative would be to include an API key in the request, that you could sign/verify with a key you keep in data store.

This is a couple of years old, but I just wanted to point out that this won't work. If your FORM is in a webpage, than the POSTer's IP is not the server's IP, it's the IP of the web browser client.
The HTTP POST connection is from that user, directly to your Webhook. Your netlify server just delivered the HTML Form. The submit doesn't go through your webserver to get to its action="" destination.

Related

HTTP works, but HTTPS doesn't work (using Cloudflare, Github Pages, and Namecheap)

I want to host my portfolio for as little money as I can.
So I bought my domain off of Namecheap, I'm hosting my website on GitHub pages, and I'm using Cloudflare so as to get a free SSL certificate and have a HTTPS connection available on my website.
When I try http://sitemeer.com/#https://josipmuzic.com
It shows that it's only partially available
But when I try http://sitemeer.com/#http://josipmuzic.com
It shows that it is available everywhere
This came to my attention when I asked my friend from a different country to check my website. After a bit of digging, we confirmed that the reason why wasn't because he was using a VPN, but instead, because of the country he was in.
Does anyone have any suggestions as to what I could do?
I have been googling for a while now, but I'm not exactly sure what I should be googling for, I cant seem to find anyone else having this problem.
Error: You can see the error you get when you open the https page by either opening the page https://josipmuzic.com, but I'll also provide it here
Fastly error: unknown domain: josipmuzic.com. Please check that this domain has been added to a service
Details cache-vie6323-VIE
Note: You likely can't open the HTTP page either because through Cloudflare I made it so that it always redirects from HTTP to HTTPS
For me, the errror disappeared after I put AAAA records to the DNS management. According to this documentation, you should put these IP addresses:
2606:50c0:8000::153
2606:50c0:8001::153
2606:50c0:8002::153
2606:50c0:8003::153
each as Value to a separate row, your domain URL (e.g.: example.com) to Name, AAAA to Type.

How can i solve dns confusion problem in my domain?

I have a dns confusion problem in my domain, there are more than 2 months that I changed the nameservers of my domain to cloud housting vps but sometimes I find that the domain displays the page of my previous host namecheap as shown in the picture how can I always force the domain to give the google server and not the namecheap server?
enter image description here
Usually, I check the status of my domain propagation using this tool:
whatsmydns.net
Checking yours, I see that all servers are pointing to the right NS, as well as the A records are always responding with the same two IP addresses from cloudflare, which seems correct. I would recommend doing a full cache clear on the device you are testing and try again.

whois lookup shows correct ip but why my browser can not find IP address of domain?

My website suddenly stopped working.
When I search for the domain name in WHOIS websites it is showing the correct server ip address and correct DNS IP address.
I can reach the website by its IP address but somehow when I am trying the domain name in browser its not working and its showing "This site can’t be reached"!
There is no error in my server log.
I tried different browsers and different systems and it is same issue.
I am really confused. Even when I am sending GET requests with Postman to my domain, it not reachable but sending request to IP is working!
whois and DNS resolution are two separate things and one does not imply anything for the other, so in short, except in very specific cases, if you have a DNS resolution problem you should use DNS troubleshooting tools, not the whois and especially not web-based whois (the only relevant whois is the registry one).
Now you are giving so few details that noone can really help.
Among the possible ideas to check and probable problems:
you forgot to renew the domain, your registrar put it on hold or worse deleted it (that you can see in whois)
you did a change in the DNS resolution and now it does not work anymore, use online troubleshooting tools like Zonemaster or DNSViz; alternatively your registrar and/or webhosting company should be able to help (since you are neither giving here the domain name nor details about the troubleshooting you do: for DNS problems, the browser is not the first tool to use, look instead at dig).
in appear that the problem was DNS on our local system. we changed it to 8.8.8.8 and then we could access to our domain!
it's usually because you use an addon domain, not the main domain for hosting orders that are set up on cpanel whm

Custom domain for white label

I have a CakePHP web app hosted on app.mydomain.com. The DNS of this is managed by cloudflare and I am using Cloudflares free SSL.
Now I want a client to use his domain as a white label.
app.clientdomain.com ------> app.mydomain.com
This is not a domain redirection. I tried to find out and it seems something with custom CNAME pointing. Any help regarding this is really appreciated.
It is necessary for the app to have an SSL. The app.mydomain.com has an SSL, but the client might not. How do I cope with that?
I understand I can just tell the client to set A records to my server IP, but that is not what I want. I do not want to give away my IP and would like to use my cloudflare as DNS resolver.
I have tried searching everywhere for this and couldn't find much. If you could also tell me what this is called, I can hopefully search more about it.
Thank You :)
Compare to similar applications
What is described in the question is a fairly standard thing. Compare with equivalent instructions from, for example, google apps:
Follow the instructions that appear to add a CNAME record for each
service address you're customizing. To add a CNAME record, sign in to
your account at your domain host's website, not with Google.
For example, to create the Gmail address mail.yourdomain.com, add a
CNAME record that points mail to ghs.googlehosted.com. Your domain
host records will look something like this:
----------------------------------------------
| Type | Name or Host | Value or Address |
----------------------------------------------
|CNAME | mail | ghs.googlehosted.com |
|CNAME | calendar | ghs.googlehosted.com |
----------------------------------------------
SSL
It is necessary for the app to have an SSL.
You're likely to have problems with this. Because cloudflare isn't likely to even route requests that hit it for app.clientdomain.com unless that domain name exists on their servers. If you continue to use cloudflare's free plan, you or the client are going to have to add their domain to cloudflare so that it'll route requests - and if the client wants to use their own ssl certificate, that certificate needs uploading to cloudflare (which means: you or they need a business plan) as that's where requests for app.clientdomain.com are going to go.
All in all if this is your business plan it seems incompatible with using cloudflare - unless the idea is to force clients to use cloudflare too.

Domain name from IP

My site still gets requests from one IP address - 195.210.29.12.
When I tried nslookup for that it shown me
Name: data12.websupport.sk
Address: 195.210.29.12
That is the hostname of one hosting provider. When I tried to realize which domain it is by using http://www.yougetsignal.com/tools/web-sites-on-web-server/ it gave ma about 500 results.
My question is - is it possible to realize which domain it was?
Thanks.
Every Provider has an abuse Mailbox. If anyone tries to hack you page or sth like that, you can write a mail to the Provider. In this case following mail to:
abuse-mailbox: abuse#websupport.sk

Resources