Link to home
Start Free TrialLog in
Avatar of rbichon
rbichon

asked on

mod_rewrite: Send users from specific IP a 404 error

How can I use mod_rewrite to send users from a specific IP address a 404 error when they try to access my site?
ASKER CERTIFIED SOLUTION
Avatar of JamesCssl
JamesCssl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rbichon
rbichon

ASKER

I'll just use the 403 Forbidden one.then. It worked perfectly. Is there a way to give a 500 Internal server error instead so that they think our site is down?
As with trying to generate a 404 error, generating a 500 error while the server is working perfectly would be quite difficult.