Free Web Hosting Forum
Go Back   Free Web Hosting Forum > 000WebHost Services > Spanish Forum
Reload this Page Problema al intentar proteger la web con contraseña
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Junior Member
robao21 is on a distinguished road
 
Posts: 7
Join Date: Jan 2011
Default Problema al intentar proteger la web con contraseña - 01-18-2011, 08:04 AM

Buenos dias.

A ver si algún alma caritativa me puede encauzar un poco.

Mis conocimiento de Flash y Html son básicos y los de php nulos.

He creado una página para nuestra boda, y me gustaria que solo tuviese acceso las personas que conocieran unos datos, por lo tanto unicamente quiero que al poner la dirección web te pida usuario y contraseña para dejarte entrar, la misma para todos.

He leido por aqui que eso se deberia hacer protegiendo la carpeta, al haber creado la página con el editor de este host, me imagino que en php, no se que carpeta debo proteger, le he puesto una contraseña a /public_html desde el panel de control pero la página sigue siendo accesible.

He intentado otros metodos, ajenos al panel de control, mucho mas complicados y unicamente he conseguido que funcionen en mi server local, al subirlos la cosa no funciona.

Un saludo y gracias por si alguién me ayuda.
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
James's Avatar
Senior Member
James is on a distinguished road
 
Posts: 890
Join Date: Feb 2009
Location: Death Mountain
Default 01-18-2011, 08:15 AM

Create a file in notepad

Code:
AuthUserFile /home/000webhostusername/.htpasswd
AuthName "NameHeres's Login Area"
AuthType Basic

require user NAMEHERE
save that as .htaccess

and then

Code:
username : password
save that as .htpasswd


====================


Cree un archivo en el bloc de notas

Code:
 AuthUserFile / home/000webhostusername/.htpasswd
AuthName "NameHeres Login Área"
AuthType Basic

requiere que el usuario NAMEHERE
salvo que como. htaccess

y luego

Code:
 usuario: contraseña
salvo que como. htpasswd


Premium, trustworthy hosting without administrator reviews and verification measures - Official cPanel control panel and live support? Unlimited resources*?
$2.00 per month for quality hosting!
www.loophost.net

We also provide reseller hosting... virtual private servers... and Minecraft servers!
Check us out today!
If you tell us you are a user of 000webhost forum you get 10% discount!
Reply With Quote
(#3 (permalink))
Old
Junior Member
robao21 is on a distinguished road
 
Posts: 7
Join Date: Jan 2011
Default 01-18-2011, 09:22 AM

Gracias por responder.

Tengo problemas, este metodo ya lo habia utilizado y no me funciona.

No se si lo que pasa es que no pongo los datos correctos, pero o no funciona y sale la página normalmente (si lo coloco en la raiz) o sale 000webhost.com si lo coloco en public_html.

Gracias de nuevo.

Translation by google

Thanks for responding.

I have problems, this method had already used and not working.

Not if you just do not get the correct data, but either does not work and leaves the page normally (if placed in the root) or leaves 000webhost.com if I place it in public_html.

Thanks again.
Reply With Quote
(#4 (permalink))
Old
Junior Member
robao21 is on a distinguished road
 
Posts: 7
Join Date: Jan 2011
Default 01-18-2011, 09:25 AM

Este es mi archivo original: /public_html/.htaccess

Si lo modifico deja de mostrarse mi pagina:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com