I do have a WebServer running on my VPS. I want to disable one link in Ubuntu. // By saying disable I mean refusing to surfing on that URL
Example;
I do have this link:
http://SERVER_IP:PORT/#/, I want to enable this link. But I want to disable this link: http://SERVER_IP:PORT/api/. How can I do it?
I tried;
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