I have managed to redirect unwanted users using Rewrite engine:
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^192\.168\.1\.7$ [NC]
RewriteCond %{REQUEST_URI} ^/protected/.* [NC]
RewriteRule ^(.*)$ - [R=404,L]
Can I use this configuration with Drupal and moodle too, because they based on
Apache server?
