How to block Spammers in your website using Htaccess (Bad users)

23995

Everest

  • Administrator
  • Hero Member
  • *****
  • Posts: 6756
    • View Profile
Do you know you can block spammers (Bad users) from using your website with the help of Htaccess, as a forum administrator i have some bad users who always publish spam content but i have a way of dealing with them though i always keep an eye on my forum 24 hours a day because it's my full time business.

In case so guys are trying to show you that they own your website don't worry you can block them from accessing your website by block their IP address through your htacess.

Htacess is a file that can be found on your web root folder, with htaccess you can command your server and tell your server to handle some certain request and blocking bad users through the htaccess is one of the request that can be handled by the htacess.

To block bad users ip address simple open your htaccess and write the following command.
Quote
deny from 82.145.221.221


Once you add the
Quote
deny from 82.145.221.221
to your htacess anybody with this 82.145.221.221 will not be able to access your website again.

How to find your website visitors IP Adress:
I know the question no your head now is how to find the ip adresses of your website bad users but don't worry i will tell you how to find their ip addresses.

First it depends on the platform your website is built on, some website will show the ip of the users together with the spam post while some will not.

For some website you can go to your users table and search for any particular username it will appear together with that person's Ip address though am sure this will not be hard for some webmasters because they know where to find the ip addresses of their members.

In case you are still having probelm blocking your website bad users then feel free to share your problems with us so that we can help you fix it



rawar

  • Newbie
  • *
  • Posts: 35
    • View Profile
bro help me out, i have being looking for community forum software just like this one, pls help me i will help promote yours WS based on my web planning publish........pls,,,,,07067495949,rawwar212@gmail.com.... thnks my mod

Everest

  • Administrator
  • Hero Member
  • *****
  • Posts: 6756
    • View Profile
Quote from: rawar
bro help me out, i have being looking for community forum software just like this one, pls help me i will help promote yours WS based on my web planning publish........pls,,,,,07067495949,rawwar212@gmail.com.... thnks my mod
Thanks for you interest and offer but if you need the forum software kindly call me on 08064660400 but note is not going it for free.
Thanks


 

Quick Reply

NName:

@Email:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
10 - 2 is what?: