.htaccess file hacked

Discussion in 'Apache' started by bluemouse2, Feb 11, 2012.

  1. #1
    Hi, it seems my .htaccess file was hacked, can someone please explain what the hacker wanted to do? Thanks!

    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    RewriteCond %{HTTP_USER_AGENT} !(MSIE|Mozilla|Linux|Explorer|Safari|Netspace|Firefox|Windows|WebEx|Macintosh)
    
    RewriteRule (.*) http://HACKER.IP.HERE.xxx [R=301,L]
    
       #RewriteBase /
    
       ## Category redirect
    
       RewriteCond %{REQUEST_FILENAME} !-f
    
       RewriteCond %{REQUEST_FILENAME} !-d
    
       RewriteCond %{REQUEST_FILENAME} !-l
    
       RewriteRule ^(.*)$ index.php [QSA,L]
    
    </IfModule>
    PHP:

     
    bluemouse2, Feb 11, 2012 IP
  2. aroel

    aroel Well-Known Member

    Messages:
    154
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #2
    I think he wants all of the requests to your site to be redirected to the mentioned IP
     
    aroel, Feb 11, 2012 IP
    bluemouse2 likes this.
  3. bluemouse2

    bluemouse2 Well-Known Member

    Messages:
    4,055
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    185
    #3
    thank you, he may want it not not anymore ;)
     
    bluemouse2, Feb 11, 2012 IP