0

I have apache traffic server which caches my webapp and its connected to a CDN. I have to reject all http requests other than my CDN.

IPTABLES rules can't do anything because, as of my knowledge, it won't deal with domain names. hosts.allow and hosts.deny also a no-go.

is there any way to natively block all other http traffic. I don't want to install any third party app because I don't want additional load for my server.

Thank you

1 Answers1

0

One way is to deny everything other than the CDN server nodes to your docroot, or whatever you need protected:

<Directory /home/yourdocroot>
allow from x.x.x.x
allow from x.x.y.y
deny from all
</Directory>
Vladimir
  • 321
  • 1
  • 12