Tengo un servidor web ejecutándose en mi VPS. Quiero desactivar un enlace en Ubuntu. // Al decir desactivar me refiero a negarme a navegar en esa URL
Ejemplo; Tengo este enlace:
http://SERVER_IP:PORT/#/
Quiero habilitar este enlace. Pero quiero desactivar este enlace: http://SERVER_IP:PORT/api/
. ¿Cómo puedo hacerlo?
Lo intenté;
iptables -A INPUT -m string --string "http://SERVER_IP:PORT/api/" --algo kmp --to 65535 -j DROP
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "http://SERVER_IP:PORT/api/" --algo kmp -j DROP
iptables -A INPUT -s http://SERVER_IP:PORT/api/ -j DROP
iptables -I INPUT 1 -p tcp --dport PORT -m string --string "http://SERVER_IP:PORT/api/" --algo kmp -j DROP