Eu tenho um WebServer em execução no meu VPS. Quero desabilitar um link no Ubuntu. // Ao dizer desabilitar quero dizer recusar navegar nessa URL
Exemplo; Eu tenho este link:
http://SERVER_IP:PORT/#/
, quero ativar este link. Mas quero desabilitar esse link: http://SERVER_IP:PORT/api/
. Como eu posso fazer isso?
Tentei;
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