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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微带串馈天线阵列每个阵元宽度计算
    • ¥15 关于无人驾驶的航向角
    • ¥15 keil的map文件中Image component sizes各项意思
    • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 Centos / PETGEM
    • ¥15 划分vlan后不通了