Got Trolls? Give em the Boot with .htaccess

Got Trolls? Give em the Boot with .htaccess

Got Trolls? Give em the Boot with .htaccess

We all have experienced and come across trolls when owning a community website or blog. I had to ban a few people from my street dance website not too long ago and a friend of mine showed me this nifty trick to ban them using their IP. Hope this can come in handy!

.htaccess File

# IP Banning
order allow,deny
deny from IP_address_goes_here
deny from IP_address_goes_here
allow from all

On top of banning them, I wanted to send them off to another website. You can do so with the following:

# IP Banning redirect page
ErrorDocument 403 http://www.makecolor.in/

If you know of any other ways to get rid of trolls, please share them!

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>