PDA

View Full Version : hacking threats


mystic10
02-07-2008, 09:24 PM
i read all the stuff you guys had to say about security...now i have question:

http://www.javascriptkit.com/howto/htaccess3.shtml[/url] but still confused where to start
k so i am trying to do this is this right
i dont have shell:

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/yah00-city/admincp/index.php/.htpasswd
...since its not shell is this ok or do i need to put it like this:
/home/yah00-city/public_html/admincp/index.php/.htpasswd
AuthGroupFile /dev/null
require valid-user

and do i name my notepad as..admincp.htaccess

and than make another notepad and save that with admincp.htpasswd

or this is not right
----------------------------
also someone suggested this with ip how do i go about writing that...
unique IP address you can edit the .htaccess file in your admincp directory with.

order allow,deny allow from <your IP>
allow from <admin2's IP>
deny from all

thanks for u help in advance

mystic10
02-09-2008, 07:58 PM
please someone look at this and guid if ok...
1.st if my path is correct

2nd. if i want to do it via ip address only how would i go about doing it

thanks in advance

Lynne
02-09-2008, 08:08 PM
I'm not sure if you can do it without shell since I'm pretty sure you must restart apache to get that to take affect (I think... I can't remember).

Do you have cPanel? You can password protect directories using cPanel.

Guest210212002
02-09-2008, 08:15 PM
I wrote up a howto on this here:

https://vborg.vbsupport.ru/showthread.php?t=105759

mystic10
02-10-2008, 06:25 PM
i just want to know if this is right..yes sir i have used ur tutorial for this...but i just need a confirmation to know i am doing in right direction:

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/yah00-city/admincp/index.php/.htpasswd
...since its not shell is this ok or do i need to put it like this:
/home/yah00-city/public_html/admincp/index.php/.htpasswd
AuthGroupFile /dev/null
require valid-user

also i want to know how would i do it so i can pw their ip