Quote:
Originally Posted by RocCityDad
anyway to redirect an IP address?
|
There is a way to do this, if I may post this here.
In your .htaccess file at the VERY TOP, place this:
# The following is IP deadbanning, it redirects if the IP matches
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^11\.111\.111\.111$ [OR]
RewriteCond %{REMOTE_ADDR} ^111\.11\.111\.111$
RewriteRule .*
http://banned.ytmnd.com/ [R=301,L]
Of course replace the 1's with the IP Addresses you'd like to use. (And those ones are a fake IP btw)
You may also replace the website as well, if you'd like.
Then if you want to add more, just copy & paste the following line:
"RewriteCond %{REMOTE_ADDR} ^111\.11\.111\.111$"
You want the last line to always be WITHOUT [OR]
Any line above that should contain that [OR] statement for new bans.
Hope this helps.