Subscribe in a reader - Subscribe via Email - 1929 Subscribers and Counting!!!

World of information, opinions, cricket and technology.

How to Block Visitors / Traffic from a Specific Country

Tuesday, June 2nd, 2009

There are times when you don’t want the Visitors or Traffic to your Website or Blog from a Specific Country.

What could be the reason for blocking a country or countries?

Your site may have data that you don’t want to expose to some countries or your site is getting lot of abuses from a country. There could be any other reason as well. In such cases the site owner or Blog owner would want to block the unwanted traffic from a country.

How to Block Visitors or Traffic from a Country?

(more…)

How to Block Visitors from specific IP using .htaccess hack

Tuesday, May 26th, 2009

I am sure most of the Website owners or Blog owners have faced this problem. Some visitor is nasty or jealous and wants to trouble by posting abusive comments or do harm to the website.

One of the solutions is to Block or Deny the access to your Blog or website.

Yes, you can block a Visitor of your website. Read on to know how to do that….

Block Visitor from Specific IP Address using .htaccess Hack

I am assuming that you know about .htaccess file. It resides in the root directory of your website. The root directory could be /www/, /httpdocs/ or /public_html/ directories. Any of them depends on the hosting service.

Make sure you backup .htaccess file before you making any changes.

  • Grab the IP Address of that visitor by checking your favourite Stats webservice. I use StatCounter to get the IP Address or Wordpress Dashboard (if the visitor has left a comment).
  • Login to your hosting service site and open code>.htaccess file. Make sure you backup the file before making any changes.
  • Lets say i want to block a Visitor coming from this IP Address 120.120.120.120. I will add the below entry in .htaccess at the end of the file.
    deny from 120.120.120.120
  • Now save the file

If you want to block more visitors, just keep adding the ip addresses in .htaccess file .

In this way, you can also block the automated spammer.

If you know any other way, please share via comments. Hope you learned something from this post!

Technorati Tags: ,

How to Remove Wordpress Meta Generator tag

Thursday, May 14th, 2009

I was reading an excellent post How to Stop Your WordPress Blog Getting Hacked. In that, the author has listed out different ways on how you can stop your Wordpress Blog getting hacked.

The second point in that post is to “Remove Meta Generator Tag”. This tag reveals the Wordpress Version you are using. This is the reason to remove that tag.

As instructed, i headed to header.php of my current theme and looked for the following line to remove it.

<meta name="generator" content="WordPress 2.7" />

I was surprised to see that line was not there but, it was getting generated when i view the source of my Blog.

I then found a way to Remove Wordpress Meta Generator tag.

If you look the contents of header.php carefully, you will find a function call wp_head() just before tag. This is the function which is adding Wordpress Meta Generator Tag.

Our aim is to remove that tag from getting generated by wp_head() function.

Following steps are to remove meta generator tag in wordpress:-

(more…)

How to set CapsLock, NumLock and ScrollLock Keys On/Off using Windows Registry Tweak

Wednesday, March 11th, 2009

Most of the Windows users have preference on whether “CapsLock”, “NumLock” or “ScrollLock” keys should be turned on or off after Windows has started.

I prefer NumLock to be in On status and CapsLock in Off status after windows has completed started.

What if your preference is not same as the default settings that Windows? Below is the tip by which you can do changes in Windows Registry to permanently change the settings according to your preference!

Below are the steps to change the ON/OFF Status of CapsLock, NumLock and ScrollLock Keys:
(more…)

How to Surf Web Anonymously – 25 Web Proxies

Thursday, March 5th, 2009

Most of us know that most of the sports, torrents, bookmarking, social networking, dating sites are blocked in places like School, college, universities and work places. What if you have no work at office or no classes at college and want to surf these sites?

There are ways to access restricted or blocked sites. One way is the use of proxy server to get through the firewall and have access the restricted sites.
How to Surf Web Anonymously - 25 Web Proxies
I some times get free time at office and like to surf websites anonymously. To do that, I use web proxy sites that allowed to do anonymous browsing.

The advantage of web proxies is that it protect your identity online. They hide your IP address and enable you to surf the web under their location. I have tried out lot of web proxy services to access blocked sites. Below, I am listing out 25 web proxies. Give it a try. It may work or may not.

How to surf Web using Web Proxies – 25 Web Proxies

(more…)