How to allow a single domain name with iptables
Posted
by
Claw
on Server Fault
See other posts from Server Fault
or by Claw
Published on 2012-09-13T13:52:33Z
Indexed on
2012/09/13
21:40 UTC
Read the original article
Hit count: 213
I am looking for a way to make iptables only accept requests for my domain name and reject the others.
Lately I misconfigured my apache proxy, it is now fixed, but I keep receiving a load of requests looking like that :
xxxx.xx:80 142.54.184.226 - - [12/Sep/2012:15:25:14 +0200] "GET http://ad.bharatstudent.com/st?ad_type=iframe&ad_size=700x300§ion=3011105&pub_url=${PUB_URL} HTTP/1.0" 200 4985 "http://www.gethealthbank.com/category/medicine/" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)"
xxxx.xx:80 199.116.113.149 - - [12/Sep/2012:15:25:14 +0200] "GET http://mobile1.login.vip.ird.yahoo.com/config/pwtoken_get?login=heaven_12_&src=ntverifyint&passwd=7698ca276acaf6070487899ad2ee2cb9&challenge=wTBYIo2AEdMFr6LtdyQZPqYw9FS9&md5=1 HTTP/1.0" 200 425 "-" "MobileRunner-J2ME"
which I would like to block.
How can I manage this ?
© Server Fault or respective owner