Redirect few IP address on specific web page
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.
-
Hello :) You could utilize custom Mod_Rewrite rules in your .htaccess file to redirect based on IP addresses. A similar question is discussed at the following third-party website with examples: [url=http://stackoverflow.com/questions/8985502/htaccess-redirect-to-all-ips-but-mine].htaccess redirect to all IPs but mine - Stack Overflow Thank you. 0 -
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? 0 -
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. 0 -
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" 0
Please sign in to leave a comment.
Comments
4 comments