World of information, opinions, cricket and technology.

How to Highlight Special Paragraphs or Sentences in the post or article

Thursday, June 4th, 2009

Few days back, Atul from Ocean of Web left a comment at How to Block Visitors from specific IP using .htaccess hack.

This is what he asked :

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

for this line in red color box with cross mark, are u using any plugin for this

You can check the comment here

In above post where he left the comment, I have put the following:

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

Today, i am going to share the CSS and images and also tell you how you can add these Custom Paragraphs or Sentences to highlight them in your Blog post

How to add Custom Paragraphs or Sentences in your Blog post

  1. First open your Theme's style.css file and then copy the below CSS snippet at the end of the file. Note: all themes doesn't have css filename as style. So, check accordingly.
    .info {font-size: 11px;color: #191919;background: #ebe9ce url(images/info.gif) no-repeat 5px center;font-family: Verdana, sans-serif, "Courier New";line-height: 125%;margin: 10px 0px 0px;padding: 12px 12px 12px 25px;display: block;font-weight: 400;width: 80%;border-top: 2px solid #DAD6A5;border-bottom: 2px solid #DAD6A5;}
    .warning {font-size: 11px;color: #191919;font-family: Verdana, sans-serif, "Courier New";line-height: 125%;background: #e3aeae url(images/warning.gif) no-repeat 5px center;display: block;margin: 10px 0px 0px;padding: 12px 12px 12px 25px;font-weight: 400;width: 80%;border-top: 2px solid #D68585;border-bottom: 2px solid #D68585;}
    .download {font-size: 11px;color: #191919;font-family: Verdana, sans-serif, "Courier New";line-height: 125%;background: #d5ecd5 url(images/download.gif) no-repeat 5px center;display: block;margin: 10px 0px 0px;padding: 12px 12px 12px 25px;font-weight: 400;width: 80%;border-top: 2px solid #A9D8A9;border-bottom: 2px solid #A9D8A9;}
    .alert {font-size: 11px;color: #191919;line-height: 125%;background: #FFE5BF url(images/alert.gif) no-repeat 5px center;font-family: Verdana, sans-serif, "Courier New";display: block;margin: 10px 0px 0px;padding: 12px 12px 12px 25px;font-weight: 400;width: 80%;border-top: 2px solid #FFC46A;border-bottom: 2px solid #FFC46A;}
    .note {font-size: 11px;color: #191919;font-family: Verdana, "Times New Roman", Times, Georgia, serif;line-height: 125%;background: #eaf2f5 url(images/note.gif) no-repeat 5px center;display: block;margin: 10px 0px 0px;padding: 12px 12px 12px 25px;font-weight: 400;width: 80%;border-top: 2px solid #B7D2DD;border-bottom: 2px solid #B7D2DD;}
    .click {font-size: 11px;color: #191919;font-family: Verdana, "Times New Roman", Times, Georgia, serif;line-height: 125%;background: #fcfbed url(images/click.gif) no-repeat 5px center;display: block;margin: 10px 0px 0px;padding: 12px 12px 12px 25px;font-weight: 400;width: 80%;border-top: 2px solid #F2EDB0;border-bottom: 2px solid #F2EDB0;}
  2. Now, if you check the above css code. It is using some images. Below, i am providing the images.zip file. Please download it and upload it in your THEME DIR/images/ directory. If you don't see images directory under your THEME directory, then create one and extract the images from the images.zip file.

    Download Images for above CSS code

(more...)

How to avoid Hotlinking of file and images using .htaccess hack

Wednesday, May 27th, 2009

Yesterday, i posted a .htaccess hack to Block Visitors from specific IP using .htaccess

Today, i am here again to share with you one more .htaccess hack.

What is HotLinking?

Avoid / Prevent Hotlinking of images or files (Credit http://www.conquerhosting.com)

Avoid / Prevent Hotlinking of images or files (Credit http://www.conquerhosting.com)

Inline linking (also known as hotlinking, leeching, piggy-backing, direct linking, offsite image grabs and bandwidth theft) is the use of a linked object, often an image, from one site into a web page belonging to a second site. The second site is said to have an inline link to the site where the object is located.

(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: ,

Watch Flash Videos and Mpeg-4 Videos in FLV Player

Saturday, March 28th, 2009

Most of them watch lot of videos online. It could be Youtube or MetaCafe or any online video on News website or other website.

Most of the videos you find online are either in Flash format or Mpeg-4 format. If you like the videos, you download using Youtube downloader or Download Megavideo Videos and store it on your harddrive.

If you want to play the Flash vidoes or Mpeg-4 videos, then you need a FLV Player.

Use FLV Player to watch Flash and Mpeg-4 Videos

Play FLV and Mpeg-4 Videos in FLV Player
(more...)

Remove Malware and Spyware using Malwarebytes Anti-Malware 1.34

Tuesday, March 17th, 2009

In this bad world of internet, we need to make sure that we are well equipped to fight with Viruses, Spywares, Malwares, etc.,

Are you well equipped to fight and remove those? Can you PC/Laptop fight it out?

Today, i am going to talk about a windows application that is a must for those who are connected internet.

Malwarebytes' Anti-Malware is a anti-malware application that thoroughly scans your system in a look out of malwares and spywares. I have personally used it and successfully was able to remove two deadly malwares. It can remove even the most advanced malware and spyware. I was able to remove both C:\resycled\ntldr.com worm and Security 2009 - Removal instructions using the same application. Do check out the links.

Remove Malwares and Sypwares - Malwarebytes Anti-Malware

Remove Malwares and Sypwares - Malwarebytes Anti-Malware

(more...)