This is my first year at university and This is also my first time trying to configure a server.
They want me to block some https-web. I was able to block all websites with iptables except one.
I'm using FedoraServer 37 and I would like to block access https://www.example.edu
If i try to curl it, it shows a 301 code. If I follow it with the flag -L, it works normal.
I tried to use iptables with:
iptables -A OUTPUT -p tcp -d www.example.edu --dport -j DROP
After that i tried
curl -sSL -D - https://www.example.com and nothing happens. I checked iptables --list and I saw that there is a redirection: destination: server-18-66-122-86.fra60.r.cloudfront.net
I blocked also this direction and all the IPs that it uses. Then I tried to block it with squid + iptables:
nano /etc/squid/squid.conf
acl example dstdomain .example.edu http_access deny example
systemctl restart squid
and iptables:
iptables -A FORWARD -p tcp -d www.example.edu --dport 443 -j DROP
And still doesn't work. Does someone know what is it going on?
Thank you