Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default Hundreds of odd redirects in new account ?

    We just setup a clients new account on our cPanel 11.25.0-C43473 - WHM 11.25.0 - X 3.9 CENTOS 5.2 box and he added a subdomain and did some other work.

    Later on he claims he found almost 200 redirects for all the files he uploaded. I cant tell if he did it somehow or if the system just went nuts and did it but it basically shows that its set for ALL domains under the clients account then a file like:

    /gallery/new_hampshire/01-BirchFoliage.html

    redirects to

    http://www.xxx.com/gallery/new-hampshire/

    Type permanent
    Match (blank)
    WWW (blank)
    Wildcard (blank)

    of course each redirect is unique and seems to be for all files and folders.

    when you click remove it asks you if you:

    "Are you sure you wish to permanently remove the redirect /gallery/new_hampshire/01-BirchFoliage.html on ** All Public Domains **"

    if you answer yes it acts like it did it but the redirect remains.

    Has anyone else seen this before ?. I would like to just delete the account and let the client start over but I am worried the delete of the account might clobber the whole httpd.conf file or something else.

    Is there a location for all the redirects outside of the httpd.conf or any other file that could affect other customers if this account is deleted ?

    Thanks.
    Last edited by nyjimbo; 03-15-2010 at 11:29 PM.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  2. #2
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    I also noticed a weird redirect:

    domain: ALL
    directory: /gmail
    redirect url: https://www.google.com/a/xxx.com
    type: permanent

    however no file or folder matches anything with the name google or google.com

    (note, the xxx.com is just my edit to remove the real domain)
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  3. #3
    Member
    Join Date
    Jul 2005
    Location
    Sticky On Internet
    Posts
    555

    Default

    is it all under one account or its on multiple cpanel users on server ?

    check .htaccess in public_html fodler mostly redirects should be mentioned there.

    Also check if the user is exploited due to outdated gallery version or weak cpanel password.

    however running a full system scan would be recomended if its more than one cpanel user.

  4. #4
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    Quote Originally Posted by mohit View Post
    is it all under one account or its on multiple cpanel users on server ?

    check .htaccess in public_html fodler mostly redirects should be mentioned there.

    Also check if the user is exploited due to outdated gallery version or weak cpanel password.

    however running a full system scan would be recomended if its more than one cpanel user.
    Its one account. I think it is the .htaccess file, it appears it was moved from another server and the redirects might have been entered manually but now cpanel is picking them up but it wont delete them so I have to figure that out. The file permissions on the .htaccess seem the same as any other .htaccess file on any other account so its something else.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  5. #5
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    You can look in all ".htaccess" and "httpd.ini" files in the account and also at the VirtualHost section in the httpd.conf file (/usr/local/apache/conf) and outside of that, redirects can also be setup within the PHP scripts themselves so might want to take a peek in those and in particular their main index page and maybe grep for "header", "Location", or "url" and see what that turns up as well.

    If you are running DSO based PHP, I would strongly consider changing but also on that note, if this client has any files or permissions set to '777',
    I would open those files and take a deeper look into those as well.

    Code:
    find /home/(username)/public_html -perm 777
    find /home/(username)/public_html -type f -name '.htaccess'

Similar Threads & Tags
Similar threads

  1. Odd error after moving an account
    By santrix in forum E-mail Discussions
    Replies: 1
    Last Post: 10-17-2010, 06:20 PM
  2. Odd e-mail account issue?
    By Deltaanime in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-14-2009, 04:36 PM
  3. Suspended account that was copied.. very ODD
    By chris8lunch in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-08-2006, 11:37 AM
  4. Odd screwup after account creation.
    By encryption in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-21-2006, 07:07 AM
  5. Hundreds and hundreds of session files in /tmp
    By sexy_guy in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-20-2003, 06:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube