dongpan9760 2014-05-18 15:07
浏览 30

我的htaccess文件中这些行有什么问题?

I used the statements below to redirect from our ec2 instance ec2-184-169-142-95.aws... to the actual domain, so that google doesn't index amazon urls. This was working fine until yesterday.

#redirects to domain from amazon public dns link
RewriteCond %{HTTP_HOST} !domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

was infected and turned into

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

Today, above was exploited by someone and our site started to redirect to random adult sites on mobile and tablets. A common domain was being repeated mini-vip.ru/tds. Which is also listed in the blocklisted domains http://labs.sucuri.net/?malware

When i removed the statements from the .htaccess file. Redirection from the malware stopped. Did anyone also faced such an issue?

We are using Amazon EC2 instances and our code base is in PHP/Codeigniter.

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥100 有人会搭建GPT-J-6B框架吗?有偿
    • ¥15 求差集那个函数有问题,有无佬可以解决
    • ¥15 【提问】基于Invest的水源涵养
    • ¥20 微信网友居然可以通过vx号找到我绑的手机号
    • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
    • ¥15 解riccati方程组
    • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
    • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
    • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
    • ¥50 树莓派安卓APK系统签名