The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect few IP address on specific web page

Discussion in 'Security' started by nicolass, Dec 25, 2013.

  1. nicolass

    nicolass Member

    Joined:
    Jan 22, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,
    I have problem with some web scrappers. I detected they IP addresses and now I wanna redirect they IP's to some useless web page. How I can do that via cPanel or any other way?

    I try with .htaccess but looks that he not do that correctly. Is there some option on CentOs ot cPanel..or?

    I won't block them with 403 coz they then will do that from different IP. I wanna serve to they some useless content.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,724
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. nicolass

    nicolass Member

    Joined:
    Jan 22, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I already try with .htacces...but in apache log files I still see that specific IP address accessing some urls..I also test with my own IP address...and in access log file I see my IP address..

    Can I return 404 instead 403 error code with [deny] option?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,724
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You would have to implement a custom Mod_Rewrite rule that redirects the request to a 404 page. You may want to consult with your web hosting provider to see if they can simply block the IP address through a firewall.

    Thank you.
     
  5. nicolass

    nicolass Member

    Joined:
    Jan 22, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    If thy see that they are blocked..they will change IP address :( ...coz of that I wanna serve them some page "site is under construction..or some useles text with images"
     
Loading...

Share This Page