• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved unknown domains point to my ip

andre_c

New Pleskian
Good evening, from the IP query, there are 2 domains that are not registered in the plesk backend and that I would like to inhibit as they are not authorized. Would there be a way?
 
These iptable rules will create peace and quiet for the domain. Please replace “DOMAIN.TLD” with the actual domain name.

Code:
# iptables -I INPUT 1 -p tcp -m multiport --dports 80,443,7080,7081,8443,8447 -m string --algo bm --string "DOMAIN.TLD" -j REJECT --reject-with tcp-reset
# iptables -I FORWARD 1 -p tcp -m multiport --dports 80,443,7080,7081,8443,8447 -m string --algo bm --string "DOMAIN.TLD" -j REJECT --reject-with tcp-reset
# iptables -I OUTPUT 1 -p tcp -m multiport --dports 80,443,7080,7081,8443,8447 -m string --algo bm --string "DOMAIN.TLD" -j REJECT --reject-with tcp-reset

The "#" is not part of the command, but means to run the command as root.
 
Back
Top