Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nicolass

    nicolass Member

    Joined:
    Jan 22, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    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:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. nicolass

    nicolass Member

    Joined:
    Jan 22, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice