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

World of information, opinions, cricket and technology.

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 Find Broken Links, Missing Titles, Image alt text with Xenu’s Link Sleuth tool

Tuesday, May 12th, 2009

Jonny from Jonnys Blog left a comment few days back on my Previous Post Broken Links Remover – A must Wordpress Plugin. He mentioned a freeware tool that can check all the broken links of any website. I took a look at that freeware software. It is a great tool to use for all the webmasters.

Xenu’s Link Sleuth is a freeware tool to check Broken Links of your website. It uses multi-threading to scan broken links. Hence, it is very fast compared to any other link checking software. Given the URL of the website, It can come up with all the broken links withe the details like title, type, size etc. It does all this pretty quickly.

How to use Xenu’s Link Sleuth

  1. Download and install the program
  2. Run the program and enter the URL of the website which you want to check
  3. Now it will check for all links like normal links, images, backgrounds, style sheets, scripts and java applets.
Find Broken Links of any website. Image Credit :  Xenu's Link Sleuth

Find Broken Links of any website. Image Credit : Xenu’s Link Sleuth

(more…)

Cannot dial 000 800 xxx Toll Free number from BSNL Landline Phone – Solution

Monday, May 4th, 2009

From the last few years, I was using Tata Indicom Landline phone at my home. Recently, I switched to BSNL Landline Phone. After a few days, I faced a weird problem.

The problem was “I cannot dial to Toll Free number starting with 000 xxx xxx”. As soon as i dial more than two 0 digits, I was getting a message that “This facility is not available on your telephone”.

I don’t have ISD Connection. Note that this is not a ISD number. This is India Toll Free Number.

After lot of days of research and talking to BSNL technical team, I got two solutions to the problem. Below, i am mentioning those two solutions.

Two solutions to dial 000 800 xxx Toll Free number

  1. Ask BSNL Exchange to change the Switch:BSNL uses two types of switches – Ericsson and C-Dot.

    A phone that is connected through C-Dot accepts the call if the number starts with 000 and it has nothing to do with STD/ISD facitlity. It is called “Connect call” facility.

    If you cannot call to number starting with 000, It means that your Phone is using Ericsson Switch and you need to contact BSNL and explain to them the same and ask them to change the switch to C-Dot.

    There is no plan change or cost limitation other than this. The technical team can change the switch in 10 minutes only if their planning team sends a written letter.

  2. Subscribe for ISD FacilityI was unlucky. I was told that in my city they don’t use Ericsson switch.

    The only option left for me was to subscribe to ISD Facility.

    It is strange issue. But i got it resolved by getting ISD Facility. I am now able to dial 000 xxx India Toll Free numbers.

I hope this post helped you. Do let me know if you have any other solutions.

Technorati Tags: , , , , , , ,

Download YouTube videos using Youtube Downloader

Thursday, March 12th, 2009

In the past, i published a post to show you Different ways to download videos from Youtube. Today, i was going through Download.com and found a software tool called Youtube Downloader.

The name tells you what does this tool do. After you download and install it. You can Download any Youtube video you want.

Download YouTube Videos – YouTube Downloader

Download YouTube Videos using YouTube Downloader
(more…)