PDA

View Full Version : block IP in cpanel question


newguy
08-06-2011, 08:19 PM
I have blocked a IP in my cpanel IP Deny Manager, but I would like to send that IP to a URL of my choice when the connect to my site. Can this be done?

Boofo
08-06-2011, 09:12 PM
Redirect?

Lynne
08-06-2011, 09:12 PM
Did you do a search? I am pretty sure I have seen a mod to do what you want.

newguy
08-07-2011, 12:12 AM
Redirect?

Yes but for only the ips of my choice not ever user or guest.

KProjects
08-10-2011, 01:24 PM
This should work.. add this in your .htaccess


RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^1\.2\.3\.4$
RewriteRule .* http://www.google.com


(replace the 1.2.3.4 w/ the ip you want to shoot away.. and replace google.com w/ the place you want to send them..)

newguy
08-11-2011, 01:07 AM
This should work.. add this in your .htaccess


RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^1\.2\.3\.4$
RewriteRule .* http://www.google.com


(replace the 1.2.3.4 w/ the ip you want to shoot away.. and replace google.com w/ the place you want to send them..)

WOW thanks so much!!!!