Redirect few IP address on specific web page

nicolass

Member
Jan 22, 2012
5
0
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.
 

nicolass

Member
Jan 22, 2012
5
0
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.
 

nicolass

Member
Jan 22, 2012
5
0
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"