₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,970 members, 8,448,038 topics. Date: Sunday, 19 July 2026 at 03:23 PM

Toggle theme

Mrperfect's Posts

Nairaland ForumMrperfect's ProfileMrperfect's Posts

1 2 3 4 5 6 7 8 ... 21 22 23 24 25 26 27 28 29 (of 98 pages)

PoliticsRe: Explosions, Gunshots At Gwange Area In Maiduguri by mrperfect(m): 7:38pm On Oct 08, 2012
When would this stop?
Christianity EtcRe: Tee Mac Calls Oyedepo A Money Grabbing Fraud by mrperfect(m): 7:17pm On Oct 08, 2012
Everybody is entitle to his/her opinion.
CrimeRe: One Of The ALUU 4 Killers Caught. by mrperfect(m): 6:51pm On Oct 08, 2012
I wonder gain for killing fellow.
WebmastersRe: Is Blogging Dead? by mrperfect(m): 6:03pm On Oct 08, 2012
NO, blog isn't
CrimeRe: Man Abducted At His Wedding In Kwara by mrperfect(m): 5:38pm On Oct 08, 2012
Good news is that he is found without hurt.
WebmastersRe: SMF Unable To Connect To Database by mrperfect(m): 5:32pm On Oct 08, 2012
Login into your cpanel go to the database and click repair database, you will be fine.
FoodRe: Whats Your Favourite Drink And Why? by mrperfect(m): 5:03pm On Oct 08, 2012
Just Holy water, i'm ok.
Christianity EtcRe: Dilemma : Is GOD a Trinity by mrperfect(m): 5:00pm On Oct 08, 2012
Very interesting.
PoliticsRe: Pictures Of Flood In Isoko Communities, Delta by mrperfect(m): 4:24pm On Oct 08, 2012
Sad for the country.
PoliticsRe: NSCDC Destroys 615 Illegal Refineries In Edo,Bayelsa & Rivers by mrperfect(m): 4:18pm On Oct 08, 2012
It will be good to read that legal ones are built.
RomanceRe: It Feels Weird Running In to Your Ex - Why? by mrperfect(m): 4:13pm On Oct 08, 2012
Because both of you shouldn't dated in the first place.
RomanceRe: How Old Is Old Enough For Marriage? by mrperfect(m): 4:02pm On Oct 08, 2012
There is no standard for that.
WebmastersRe: Why Has Blogging Become Only A Tool For Making Money? by mrperfect(m):
We should encourage starting something, blogging is one of such. To start a Blog you need basically three things: webaddress, hosting and your content. Order webaddress and hosting from our company,we will install your blog free of charge. Webaddress is N2000,hosting starts from N25O a month,Phone 08034283159
CelebritiesRe: Charlyboy To Return As Judge On Nigerian-Idol As Linda by mrperfect(m): 1:15pm On Oct 08, 2012
That is good because an experience person like him is needed.
WebmastersRe: How Do I Pay For A Domain Name In Nigeria? by mrperfect(m): 12:47pm On Oct 08, 2012
Order domain through us it costs N2000 a year, hosting starts from N2, 000, we will install your blog for you free.
WebmastersRe: How To Create My Blog by mrperfect(m): 12:33pm On Oct 08, 2012
Order our webhosting service we will help you set up your blog free, is one of our value added services. Plan starts from N250 a month. Phone: 08034283159
FamilyRe: Flogging Your Partners Younger Ones? : How Appropriate? by mrperfect(m): 12:26pm On Oct 08, 2012
Yes, with a good reason.
WebmastersHow To Block Direct Image Linking Using .htaccess by mrperfect(op): 5:54pm On Oct 07, 2012
Most of us have a specified limit to the amount of traffic our web servers will handle for us. That limit seems very generous – until you start looking at image downloads and the bandwidth required. A few dozen users downloading an image – that's one thing. But what if you have an image that dozens of other websites like?

Worst-case scenario: suppose you run a site that gets hold of a picture taken by an Iraqi soldier of an incident that gains a lot of media attention. And suppose you have the exclusive rights to that image. You want to sell it, of course, not give it away, so you don't post it as a freebie. You may have a downloadable version that others can take away to post on their own website, generally with a link to your site. But your original image is reserved for your use only.

Here's the problem. Webmasters, often amateurs not really understanding why what they are doing is harmful, want to deliver the best possible image to their own readers. So instead of downloading your free file or linking to your site, they embed a link in their own page that downloads your picture, and only your picture, as part of their own website. This is easy to do; all you have to do is use the image link straight out to the other website.

With that excellent and lucrative image referenced above, you may have blogs on both sides indexing you; you may even have news sites or image sites indexing you. How much bandwidth can your site take before it exceeds your monthly limit? Chances are, even a medium-case scenario is going to turn your site into a DNS instead, and you will lose viewers and site ranking while you are unavailable. Not worth posting that great picture anymore, is it?

But you do have another option: the .htaccess file. This works primarily in Apache servers; if you're not certain what you've got, call and ask. Because not all systems will allow them, and some can even be damaged by improper .htaccessing, you should contact your server administrator before you upload one, anyway.

What Is .htaccess?

.htaccess is a type of file that has, for years, been used to restrict access to protected web pages or areas, such as error pages and password-protected directories. You create it using a text editor such as NotePad or SimpleText, and then save as plain (ASCII) text. Upon saving it, the file extension needs to be changed from .txt to .htaccess – and the rest of the name needs to be left off. Your file should be named nothing except for .htaccess. Not file.htaccess. Just .htaccess.

If your text program insists on appending the .txt, you can right-click the file anywhere you normally open it and select Rename to remove the .txt. If your computer system does not show file extensions, look up how to make it show them! Alternately, telnet and ftp programs will also allow you to rename files and remove extensions.

Creating .htaccess Files

Your first step in creating this file should be to open your text editor and save an empty page as .htaccess. Turn off your word wrap function. .htaccess files are intended to be single-line commands, and a word wrap can throw this completely off and make your file unusable, either by breaking lines in the wrong place or by putting in unwanted characters when it's uploaded.

When you upload an .htaccess file, it should be encoded as ASCII, not binary. CHMOD the file to either 644 or (RW-R—R--) so that the server can use it but a browser cannot; readable .htaccess files can compromise your security by allowing hackers to figure out what you have protected and where the authentication files are. (You can also prevent this problem by putting your authentication files above the root directory so that they cannot be accessed via www.)

An .htaccess file affects the directory it's placed in as well as any subsequent subdirectories; if you have files everywhere you want protected, you can put the .htaccess file in your root directory. If you only want to protect your images, you can put it in your images directory alone. The closest .htaccess file to any given directory, reading up the directory tree, is the one that is applied to that specific directory. Try to use the fewest number of .htaccess files possible; redundancies can cause an infinite loop, which is bad for your site.

Preventing Hot Linking

The most important thing you want to do with an .htaccess file is prevent hot linking of non-HTML objects like images and movies. Hot linking is often referred to as "bandwidth stealing."

Your .htaccess file will disallow hotlinking; instead of the image your thief is trying to use, they'll get something else, like a broken image symbol or content you specify (angry men are popular).

Your .htaccess file content should read as follows:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]

The first two lines you don't have to modify in any way. However, the third line's http://mydomain.com needs to be modified to reflect your URL. The fourth line in the example is set up to deny use of GIFs and JPEGs; you can add, using a pipe (|) separator, any other file type you wish.

If your server is set up to deliver alternate content (call your server administrator and ask), you can add another piece to the fourth line of code in the .htaccess file to do this:

RewriteRule \.(gif|jpg)$ http://www.mydomain.com/angryman.gif [R,L]

This delivers an angry-man image you have in your directory; just as above, make certain you change that domain name to the proper one.
Christianity EtcRe: Purpose Driven Life Of A Christian By God by mrperfect(m): 5:15pm On Oct 07, 2012
Good question....
PoliticsRe: Onaiyekan, Sultan Nominated For 2012 Nobel Peace Prize by mrperfect(m): 10:00pm On Oct 06, 2012
Anything that connotes peace is a welcome development.
EducationRe: Writing Exam In The Dream by mrperfect(m): 9:42pm On Oct 06, 2012
Exam means try you must pass before you move to next stage in life, the way yours went it seems you're not prepare for the passage yet, as a result you were overwhelmed by it.
PoliticsRe: Achebe’s Biafra Memoir Stirs Controversy by mrperfect(m): 7:04pm On Oct 06, 2012
peace should be promoted in the country by all means. Please people.
WebmastersRe: A Website Deisgner Wanted (for A Travel Agent) by mrperfect(m): 6:54pm On Oct 06, 2012
We can upgrade the company website to international standard travel agency website.
What is company budget for the project? reach us through contact details in our website, see my signature.
WebmastersRe: I Need A Programmer For A Web Portal For Estate Managment Agency by mrperfect(m): 6:45pm On Oct 06, 2012
Are you still in need of the service?
Nairaland GeneralRe: Matter Of Life Or Death, Please Help by mrperfect(op): 6:42pm On Oct 06, 2012
What he is interested is job opportunity, which currently our company doesn't have one.
WebmastersRe: Need For A Church Web Portal...using Jooomla 1.5 by mrperfect(m): 6:33pm On Oct 06, 2012
Google the tutorial.
Nairaland GeneralMatter Of Life Or Death, Please Help by mrperfect(op):
We run webhosting service in Lagos, this morning I got call from a young man calling from Benue state but phone network was bad, the call was dropped. I assume he needs web hosting service and text him to explain what he wants through phone text message or our email, below is our discussion:



His message: ”Sir What I want is Job so that I will be getting a little money to take care of my life, my wife and Child. Please help me if you can. I will do any thing to save my family I mean any thing, I will if u ask

My reply: Sorry we don’t have job opportunity for now.

His reply: If no job now then I will decide of anything I choose among the two: Life and Death that is all, for I have try, I have try more than enough in life, I need money, thank you for considering my condition, thank you God bless you sir. Mr Friday"

I haven’t reply this, I can sense lost of hope in life and frustration to extent threaten to take his life.
Please what advice do you have for this fellow? or any help to him?
PoliticsRe: Climate Change: Lagos May Vanish In 50 Years - Experts by mrperfect(m): 11:13pm On Oct 05, 2012
This isn't pretty picture.
PoliticsRe: Nigeria To Appeal ICJ Ruling On Bakassi by mrperfect(m): 9:40am On Oct 05, 2012
Peace and adequate care of people of Bakassi should be main concern.
PoliticsRe: Dangote, Others To Establish Plants In Owerri by mrperfect(m): 9:37am On Oct 05, 2012
This is really a welcome development.
WebmastersLet's Go Dancing With Google by mrperfect(op): 9:29am On Oct 05, 2012
A ‘Page Rank’ is a number Google gives to a web page that represents how important Google thinks the page is on the web. When one page links to another, Google considers it to be effectively casting a vote for the other page. The more ‘votes’ there are for a page across the whole web, the more important that page must be. But that’s quite an assumption, isn’t it? The importance of the page that is casting the vote determines how important the vote itself really is, meaning in Google calculations a page's importance comes from the votes cast for it. These votes are then taken into account when the page is ranked.

As a general rule of thumb, Google Page Ranks along with Alexa ratings are the best indicators of how well your SEO work has been going. Granted, the ranking that you appear in on the results for your most important key words is the real indicator, but a strong Google Page Rank will help to boost this position substantially. The more links that you have pointing at your site, the better off you are. That’s a basic rule that will apply throughout your SEO operations.

These sorts of separations are interesting and can contribute to a great deal of change and motion in page ranks. The most important thing to keep in mind is that eventually Google will get you into your proper place. Generally, if you behave, you will not be thrown down for long by the odd activity that can occur when Google is in the process of updating its index for your server (or for the servers of your favorite link partners.

The best way to increase your page rank is to contact people with relevant and complementary content (that is, content that does not compete with your own but that enhances it). These links are most likely to last and they will not only increase your Google Page Rank, but they will also provide relevant hits via the links themselves.

How is PageRank Calculated? Google calculates the PageRank PR of all pages it indexes, taking into account all the links to and from each site. When a page ‘votes’ for other pages by linking to them, it shares out some of its PageRank value amongst these pages. This algorithm means that a link to your site from a page with PR4 (i.e. a Page Rank of 4) and five outbound links would be worth more than a link from a page with PR8 and a hundred outbound links. It’s not just the Page Rank of the page that’s important, but also the number of links it has.

You see, the ‘time-to-live’ for google is only five minutes – that means that Google’s IP address can change every five minutes. This allows them to switch between their datacenters regularly, spreading the search load between them intelligently and routing around any damage. If you constantly entered the same datacenter with every search that you placed it would almost certainly fry within twenty four hours. Considering the number of users on Google each and every day, it is surprising that ten thousand servers is enough. A server can only handle so much traffic in a day and Google insures that it can hold more than any other service on the internet.

The datacenters updating their indexes at different times causes Google to do its dance. Unless you’re looking for your website’s ranking, you’d never notice this as your site is normally available at all times. The unfortunate bit is that often times you will lose your page ranking for a short period of time or your site will seem to have a lower number of pages indexed by Google. If you insure that you have several hundred pages available on Google at all times you will most likely be able to provide all of your content at all times either directly or indirectly.

1 2 3 4 5 6 7 8 ... 21 22 23 24 25 26 27 28 29 (of 98 pages)