有没有什么解决方案可以防止http请求中的用户代理字符串为空,最好使用.htaccess?
t3psigkw1#
#redirect empty user agent, UNLESS it's accessing the RSS feed RewriteCond %{HTTP_USER_AGENT} ^$ RewriteCond %{REQUEST_URI} !^/rss.php # <-- path to rss.php RewriteRule .* http://%{REMOTE_ADDR}/ [R,L]
存档的源:http://wiki.e107.org/index.php?title=Htaccessexample
1条答案
按热度按时间t3psigkw1#
存档的源:http://wiki.e107.org/index.php?title=Htaccessexample