Articlexpo
Search:    Main :> About Us :> Privacy :> Terms of Use :> Add Url :> Submit Article   
 

What Makes A Good Web Hosting Provider!

When building your website and getting it hosted online, you want your site to be up and running on ... - Jonathan White
 

PS3 Games

New PS3 game console which will be costlier that the Xbox 360 or the Wii - Carver Tate
 

15 Tips to Bring More Traffic to Your Blog

There are many factors that make blogs much better than normal WebPages including the speed at which ... - Kevin Oorlynck
 
 

Keys to Becoming a Successful Poker Affiliate

The key to becoming a successful poker affiliate is just a simple mathematical equation. The only wa ... - Blake Stevenson
 

Building eCommerce Websites that Work - Part 2

The second of a series of articles on the basic factors that contribute to a successful eCommerce we ... - Richard Keir
 

Does High Definition Mean Short Distance?

So, you've sold the farm to buy your HDTV display and source boxes, but the picture has more specks - Cameron Postelwait
 

Your First Steps to a Digital Publishing Empire

How to 'Eat an Elephant' when it comes to creating your first e-book. A step-by-step guide to launch ... - Geoff Morris
 

Blogging: A Profit Making Internet Option

Create a blog for fun, and make a profit. Who can beat the odds? Your purpose is fulfilled before yo ... - Jan Verhoeff
 
 

Main » Computers & Networking » Software Download
 

Defend Your Thank You Folders From URL Guessers

 
Author: Robert Plank
 

If you sell downloadable products, you're going to have a thank you page (a URL where the buyer is redirected after a sale). With just a couple lines of HTACCESS code you can make that folder airtight.

You shouldn't be putting a buyer through a mandatory signup process to download the product. They already paid, just give them the file right away and offer a chance to opt-in for updates later. Otherwise you'll be getting lots of support e-mails from people asking where the product is they just paid for.

It's always smart to name your thank you page something with a number -- a name like postorder735.html or thank-you-9987.html will do. You just want to make this impossible to guess.

When it's possible I like to separate the sales page from the download, so I stash them in a folder called something like "download" or "order." Problem: If you have these separate folders, these URL guessers can see the contents of them.

The obvious solution is to put an index.html in the folder, which keeps its contents from being listed... but what if you have, say, 25 of these folders? Do you need 25 index.html files?

No, and that's where HTACCESS comes in. Open up a new text file in Notepad and put this text in exactly:

Options -Indexes

Then save the file as: .htaccess (WITH that dot in front)

Upload it to the root of your web site. Now, if you try to view the contents of a folder that's missing an index.html file, your browser will show a "403 Forbidden" error.

Don't worry, this won't block out all files. It will simply keep a guesser from viewing a list of what files are in a given folder.

If you don't want to see that ugly generic Forbidden page, you can supply your own by adding this line to that .htaccess file of yours:

ErrorDocument 403 /sorry.html

Now you can put your message into a HTML file (maybe it could be a link to the main page of your site), put it into a file named sorry.html and upload it. Now you'll have a friendly notice that says anything you want.

One last bonus tip for you. If your forbidden message is extremely short, you don't even need to create a separate HTML document. If it's possible for your message to fit all on one line you can remove that ErrorDocument line above from your .htaccess file and put in something like this:

ErrorDocument 403 "Sorry...

I'm aware that there is a starting quote and no ending quote. That's just how you have to type it. If you put in a quote at the end there it would show up in your HTML document. I know it looks funny, but it works. Remember that "Sorry..." text is HTML so you could put in line breaks, links, bold tags, H1, H2 tags, and so on. It's all up to you.

 
 
 

Related Articles

 
Five Signs of Click Fraud
 
CD Dvd Copiers
 
Boost Your Affiliate Sales Programs With Popular Trends
 
10 Sure-Fire Viral Marketing Strategies To Increase Traffic To Your Website
 
Show Your Versatility - It's the MCP Way
 
Hotel Internet Marketing and the Secret of Copywriting
 
Why Would You Need a Computer Headset?
 
What Really Makes Money Online And What Doesn't
 
SCADA: A Definition And Overview
 
High Tech Espionage Alarms: Spyware in Your System!
 
 
 
Add URL
 
 

Teens & Children

 

Food & Recipe

 

Automobiles

 

Adventure & Sports

 

Society & Communities

 

Hotels & Travel

 

Science & Research

 

Computers & Networking

 

Self Help

 

Government & Politics

 

Employment & Careers

 

Music & Entertainment

 

Shopping Online

 

Culture & Art

 

Medicine & Treatment

 

Events & News

 

Lifestyle & Fashion

 

Business & Commerce

 

Family & Home

 

Estate & Realty

 

Banking & Finance

 

Education & Learning

 

Online & Indoor Games

 

Fitness & Health


 
Main :> Privacy :> Terms of Use  
Copyright © 2008 www.articlexpo.com