Writers' Community!
Home Page Two Columnists Q&A Submit an Article FAQs Contact Author Login
Article Submission
We Need YOUR Articles!
We'll Promote Them for FREE!

Author Login

New Authors
Register Here


Now Serving 7,784 Authors
70,499 Quality Articles
& 5,131 Current Users Online!
Featured Authors
Mogama (16,433)
Bruce Horst (138)
Joel Hendon (17,877)
Michael Ramzy (633)
E. Raymond Rock (3,064)
Ira Coffin (7,406)
Connor Davidson (5,137)
Ben Morrish (8,401)
Steve Kovacs (4,388)
Sandra E. Graham (8,072)
Fran Larson (2,158)
Shari Vaudo (418)
David Tanguay (9,593)
Missing Link (708)

View All Featured Authors
Most Recent
Creating the Perfect Website Design

How To Create An HTML Image Background For Your Webpage

Analyze Keywords Using Adwords Keyword Tool and Excel Macro Function

If You're Making These Web Site Mistakes, You're Scaring Prospects Away

Perl of Wisdom, Perl of laughter

PHP’s Paamayim Nekudotayim: The secret’s in the code.

The Macromedia Flash man looks to LEGO for a System.

Your Website Concept

What Makes A Good Website?

How To Build a Basic Web Page

Home » Categories » Website Technologies » Website Design » Protecting Your Site Using .htaccess » Printer Friendly

Protecting Your Site Using .htaccess

Rated 4.5 out of 5
No Reader Ratings Available ?
Rate It  /  View Comments  /  View All Articles submitted by Tag Craig
Submitted Saturday, May 21, 2005
Tag Craig (27)
American Nuke Net
Log in to become a member of Tag Craig's Fan Club!


Its about time someone said something about the following and give some of you another way to protect your site. Although this does not help much if you don't have a static IP or are not running your server on a unix machine with apache, for those that do, it is a major protection for your site. Personally, I am not satisfied with Protector or other security programs as yet, they still need alot of work to iron out the bugs, but kudos to those working on them - the community needs them badly.

For instance I was banned at nukecops (and the banned took over a month to be lifted) for using quotes when I did a search, this is a standard across all search engines, but used with at least one of these products, - you will get banned - although In future releases this will be fixed I'm told, it does not save your users. Many have already been banned - most permanently, for things that really did not hurt... and then they cannot contact you to explain themselves, they will not be back. Heaven knows how many users have lost access and privledges when they were not hacking, just using the system.

So now for the htaccess to protect your admin panel: Your .htaccess can be used in many ways to help your site. For more information look here and do a search for htaccess tutorial: http://www.freewebmasterhelp.com/tutorials/htaccess/

After making htaccess Simple effective protection, in notepad type in the following:

< Files admin.php >
Order deny, allow
Deny from all
Allow from your.ip.addygoes.here
< /files >

Now save this as .htaccess and upload to your server. If you have other site admins, there addy will need to go there as well :

Allow from your.ip.addygoes.here
Allow from their.ip.goes.here

You can add several each on its own line. This may not provide 100% protection but then again nothing out there will, but it will protect your system from others getting into your admin panel, unless they use your computer of course.

If your ip does change, ftp to your site, open .htaccess, change the ip number and upload it, you will have access again. You can use this to protect your pic files, part or all of your subdirectories and many other useful things, and this will work to stop robots from interring areas that they ignore in robots.txt. Hope this helps many of you, it has saved my sites many times.

Protecting your site using .htaccess

by Tag Craig http://am-nuke.net

 



tweet this!



Reprint Rights

Log in to become a member of Tag Craig's Fan Club!

Comments on this article: (1 total)


» left by Devender Verma (16) (32 days 5 hours ago.)
Reader Rating: 5 out of 5
Great article Tag. I recommend this to all my clients that use a content management system such as WordPress or Joomla. It's the most secure way of protecting your admin account.

Respond to this comment

Was this article helpful to you? Leave a Public Comment or Question:

This Article has been viewed 578 times.
Article added to SearchWarp.com on 5/21/2005 10:35:32 AM.
View other articles written by Tag Craig (27)


If you found this article interesting, you may want to check out:

Disclaimer:  All information on this site is provided for informational purposes only! By no means is any information presented herein intended to substitute for the advice provided to you by any health care or other professional or organization.


Today's Most Popular
How to Create a Splash Page for Your Website?

Creating Dynamic Website Content with PHP - MySQL

Choosing An Effective Website Colour Combination

How To Create An HTML Image Background For Your Webpage

Analyze Keywords Using Adwords Keyword Tool and Excel Macro Function

Photoshop’s Pen Tool for Tracing Vectors

Direct-To-Plate Printing versus Digital Printing

New DHTML Grid Control from Scand Brings Power of Ajax into Dynamic Data Tables

Using Colors for a More Attractive Poster

The best way to obtain a website on the cheap

Viewed from Cache. Load Time: 0.015.

Home  |  Page Two  |  FAQ's  |  Contact  |  Terms of Service  |  Article Submission Guidelines  |  Questions & Answers  |  Privacy  |  Mission / About
Copyright © 1999-2009 SearchWarp.com, All Rights Reserved - SearchWarp.com is an IcoLogic, Inc. Company