Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近才看到很多域名(波兰语等)指向我的专用服务器。通过创建一个whois,您可以看到这些区域与我的IP和同一主机上的IP相同。
我想避免它并仅授权 mydomainname.com 连接到我的站点(我使用 Apache)。
感谢您的帮助
一种。
不需要的流量的第一道防线是使用防火墙的 IP 过滤。在你的情况下,我相信你想使用 mod_access ,它有一个 allow|deny by domain 。
.htaccess
Order Deny,Allow Deny from all Allow from mydomainname.com
http://httpd.apache.org/docs/2.0/mod/mod_access.html
我建议您配置一个“基于名称的虚拟主机”,它将您的域指向您的站点,并将任何其他人指向一个提供“无效域”页面的小型应用程序。
http://httpd.apache.org/docs/2.0/vhosts/name-based.html