TechTipsApp

Technology tips blog

  • Articles
    Categories
    • Tech news
    • Internet
    • Social Network
    • Google
    • Geeky Tips
    • Android
    • Windows 10
    Top Posts
    • Install Windows XP from USB
    • Install Windows 7 from USB
    • Open Facebook When It's Blocked
    • Partition Hard Drive Without Formatting
    • Reset Windows 7 Password
    • About
    • Contact
    • Privacy policy
    • Advertise
    • Terms of Conduct & Copyright Policy

How to Block Unwanted Person to Visit Your Blog

Tanmay WordPress Leave a Comment

If you are a professional blogger then you would like to work in your blog whole the day. You do all the stuffs to launch your blog and get a better position in search engine. You do give best to boost your blog performance. But think about that if any body copies your hard works! Someone copies your articles, ideas and your blog theme too. That is not acceptable and you should block that person to visiting your site.
Related: Install and Control Multiple Sites in WordPress 3.0.
I found some methods to block some body by using the .HTACCESS file that has been described simply in the following.

How to block a particular person to visit your site

You can block the visitors from any location, country or continent defining the IP addresses in the .HTACCESS file. I’ve given some example to block the visitor in various way.
1. Block the visitor from an IP: To block a visitor from a particular IP address ad the following rules in your .htaccess file in the root directory of your server.

order allow,deny
deny from xxx.xxx.xxx.xxx
allow from all

Replace xxx.xxx.xxx.xxx with your desired IP address. But if you want to block the visitor who uses dynamic IP then the above rule would not sufficient. You have to define the range of IP address. Here defining the range need some advanced experience. For example, if you want to block the range 101.123.12.0 – 101.123.13.255 then you should put any one of the following rules:

Deny from 101.123.12.0/23
or
Deny from 101.123.12.0/255.255.254.0

Here is some rules of defining a range

# For the range 101.123.12.0 - 101.123.15.255
Deny from 101.123.12.0/22
or
Deny from 101.123.12.0/255.255.252.0
# For the range 101.123.0.0 - 101.123.255.255
Deny from 101.123.0.0/15

You can use the rules wisely to block a range of IP addresses.
2. Block the visitors from an ISP (Internet Service Provider): Some time blocking the IPs may not sufficient for you. If you want to disallow the visitor of a ISP then put the following line in your .HTACCESS file

order allow,deny
Deny from ISP-Name.com
allow from all

3. Block the visitors from a a country: Some time you may think about to ban the visitors from the whole country to visit your site. Manually you can ban the total IP ranges, used in that country. But there is an easy service that generates the code to be placed in your .HTACCESS file. Visit Block A Country. Com and just select the country from the list to ban for your website. After that press the button “GO”.
Immediately after that you will get the code that contains the rules of blocking all the IP addresses, used from that country.Copy the piece of code and paste it in your .HTACCESS file.
4. Block the visitors from a continent: If you want to deny the visitors of a continent then you can try this site and just select the continent you want to ban and click on the “.htaccess deny” cell corresponding to that continent.
Now copy the piece of code and paste it in your .HTACCESS file.
All the above procedures are related to edit your .HTACCESS file. So keep a backup of that before editing, so that you can restore the stable version if anything goes wrong.

Post Tags: Blog, Tutorial
Similar Articles from This Blog
How to Add Pictures as Bullets in Microsoft Word
How to Add Pictures as Bullets in Microsoft Word
Install Contact Page in WordPress Blog Without Any Plugin
Install Contact Page in WordPress Blog Without Any Plugin
How to Apply Multiple Formats in Bulk in Word, Excel 2013
How to Apply Multiple Formats in Bulk in Word, Excel 2013
Different Ways To Boot Windows 8 Into Safe Mode
Different Ways To Boot Windows 8 Into Safe Mode
Backup Windows Live Writer Local Draft As You Type In Clouds
Backup Windows Live Writer Local Draft As You Type In Clouds
How to Solve Paint Cannot Save This File Problem in Windows 7
How to Solve Paint Cannot Save This File Problem in Windows 7

Comments

  1. oogy meow :

    .htaccess file are not in blogspot.com…. I have a blog on blogger…please help me in this…there are many unwanted visitors on my side today..which i want block… any other method to block unwanted ISP or visitors

    Reply
    • Tanmay :

      You can follow this tutorial: http://www.chethstudios.net/2009/08/how-to-block-users-from-visiting-your.html.

      Reply
  2. Anonymous :

    Тhis blog was… how do you say іt? Relevant!! Finally I have foսnd something that helped me.
    Appreciate it!

    Reply
  3. หนังโ :

    whoah thiѕ webⅼоg is great i ⅼove studying your posts.
    Keep up the good work! You know, many persons are Һunting round for this info, you can aiԁ them greatly.

    Reply
  4. หนังxxxxx :

    Hі therᥱ to every singlᥱ one, it’ѕ actually a pleɑsant for me to go to see
    this weƅsite, it inclսdes helpful Information.

    Reply

Leave a Comment Cancel reply

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

About Us

Tech Tips App is a technology blog, looking forward to broaden the mental horizons of technical geeks round the web. Striving hard to quench your technical thirst, we have put our best efforts on the line of exhaust to satisfy your versatile technical vocabulary.

Recently Published

  1. Partitioning Hard Drive in Windows 7 Without Formatting
  2. How to Find My Contacts on Google Map
  3. Introducing SMS Organizer by Microsoft is the Best SMS App
  4. How to Fix Windows Update When It Gets Stuck
  5. How to Get Rid of Windows 10 Automatic Repair Loop [Solved]
  6. Best Antivirus for Windows 10 (Is Windows Defender Good Enough?)
  7. Best Facebook Messenger Bots to Get more out of Messenger
  8. How to Fax a Document From Your Smartphone
  9. Top Social Media Platforms You Should Always Know About
  10. Bitcoin vs Altcoin: Where to Invest? – Guide For Dummies

© 2021 Tech Tips App All Rights Reserved  Post Sitemap