Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How To Modify .htaccess To Protect A Directory?
m107
post Aug 14 2006, 01:30 PM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 15
Joined: 11-August 06
Member No.: 28,179



hi
i have a free webhost included cpanel
but it's cpanel is not full and i can not protect my dir through it.
then i think i should use .htaccess .
now i dont how i must creat .htaccess files or hoy to using it sad.gif sad.gif
can any one help me pl
Go to the top of the page
 
+Quote Post
Lyon2
post Aug 14 2006, 03:19 PM
Post #2


The Ethical Hacker
***********

Group: [HOSTED]
Posts: 1,171
Joined: 27-May 05
From: Portugal (Europe)
Member No.: 7,566



Here is everything you must know:

Htaccess
http://en.wikipedia.org/wiki/Htaccess

There you can see how to protect with password and a lot more, at least what it really matters.

---------

Here is a very complete tutorial, with 3 parts, of htaccess
http://www.freewebmasterhelp.com/tutorials/htaccess/1

This post has been edited by Lyon2: Aug 14 2006, 03:31 PM
Go to the top of the page
 
+Quote Post
m107
post Aug 14 2006, 03:29 PM
Post #3


Newbie [Level 1]
*

Group: Members
Posts: 15
Joined: 11-August 06
Member No.: 28,179



QUOTE(Lyon2 @ Aug 14 2006, 06:49 PM) *

Here is everything you must know:

Htaccess
http://en.wikipedia.org/wiki/Htaccess

There you can see how to protect with password and a lot more, at least what it really matters.


thank you
but how can i use that code?
i can not creat a .htaccess file on my pc to upload it sad.gif
what should i do?
Go to the top of the page
 
+Quote Post
Lyon2
post Aug 14 2006, 03:37 PM
Post #4


The Ethical Hacker
***********

Group: [HOSTED]
Posts: 1,171
Joined: 27-May 05
From: Portugal (Europe)
Member No.: 7,566



Try this htaccess file generator and htaccess password generator:
http://www.yellowpipe.com/yis/tools/htacce...rator/index.php

or this simple yet good:
http://shop.alterlinks.com/htpasswd/htpasswd.php

or this one (very good):
http://cooletips.de/htaccess/

or

Open notepad, insert the code you want, after reading those tutorials, then save it has htaccess.txt .

Then go to the folder where you saved the htaccess.txt file and rename it to .htaccess

That is it, exactly like that: .htaccess (with the point behind, and no extension.)

Then upload it to the directory you want to protect with password or whatever you want to do.

You must read that complete tutorial, or the first link.

This post has been edited by Lyon2: Aug 14 2006, 04:23 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Up One Directory In Url(5)


 



- Lo-Fi Version Time is now: 12th October 2008 - 05:15 PM