Question:
how do i password protect my site?
Chris Perry
2007-10-02 23:30:46 UTC
the kind where a box pops up before the page opens
i manage a web site for an annual event (fishing trip )and my site gets constantly spamed and i spend countless hours cleaning up my forum (and my email from the feedback box) anyone who uses this site will have the password but my site does not sell anything so im really not looking to have everyone trying to sell something on it
Six answers:
GuruORGeek
2007-10-02 23:34:33 UTC
look into .htaccess files, you can create as many users as you want and restrict your web root folder with .htaccess
mrjade
2007-10-03 00:24:42 UTC
What are you using to protect your forum?

Are you using a server side scripting language like PHP, ASP or JSP?



You can try developing a web based authentication system. This is where you use a database to store the users details. You will need a server side scripting language and an understanding of SQL scripts and relational databases.



Another is to user your web servers operating systems authentication system. You can secure it at a directory or file level.Check your hosting company. They can provide you more information about the web server that you are hosting your site on.



Or get yourself an opensource CMS like Joomla or Drupal or Wordpress. Content and User management is already included and to install is less than 5minutes.



Visit www.wordpress.net to download the code or visit www.wordpress.com to use the free service.
Jamie
2007-10-03 04:08:22 UTC
It depends on how many members.



For more than you ever wanted to know about the so-called ".htaccess" method:



http://httpd.apache.org/



I need to point something out, the ,htaccess method requires a password file, you should make absolutely certain this password file is kept OUTSIDE WEB SPACE. I've seen the mistake of storing the password file on the same site it protects many many times.



For more than you ever wanted to know about this problem, please see this PDF I've written:



http://www.geniegate.com/art/pdf/keep-it-off-the-web.pdf



It is a really common problem.



If you have a lot of members, using .htaccess will get tiresome (you'll constantly be maintaining passwords) to that end, you can install a complete user management package.



Here are a couple of them:



Amember: (I've had no experience with it)

http://www.amember.com/



GenieGate: (Full disclosure: I wrote GenieGate)

http://www.geniegate.com/listings/dolphin/



User management packages can be rather complex, but provide things such as password reminders and paid access areas.



One thing you may wish to consider before using the login box type of password protection is that spiders won't be able to access your site. This can greatly hinder people from finding you (as search engines won't work!)



For this problem, you can employ password protection methods that provide the content as normal, but require your visitor to be "logged in" before they are permitted to POST anything. A kind of best of both worlds. (but is more involved, it requires server-side scripting)



Alternatively, since your main concern is spammers, you might check into those (awful) CAPTCHA codes. These are typically images with numbers and a form box asking the visitor to fill them out. To "prove you're human".



CAPTCHA codes will keep out the "spam bots" but, unfortunately, they aren't blind friendly (unless you use audio files) and aren't very convenient.



Jamie
anonymous
2007-10-02 23:39:31 UTC
Set up some kind of script..CGI or whatever you like..



There are tons of websites that have pre-made scripts.. I would suggest you read through the code to ensure it is what you want, test it out to ensure it responds as you want, and read up on any vulnerabilities the code may have so that you can secure yourself. For instance, I found some javascript that will do it but anyone can view the source which means they could see the password...



Here's a password protect cgi from a site:

http://www.technotrade.com/password/



Here's an article by Leo Laporte that talks about several different ways to pasword protect a website such as .htaccess via apache and such:

http://www.g4tv.com/screensavers/features/40416/PasswordProtect_Your_Website.html

The article also contains links for cgi scripts and php..



Good luck.
blide
2016-10-21 01:10:01 UTC
specific there are a number of new website vendors for small business enterprise, Boy scouts, woman scouts, colleges etc which would be greater suitable than happy to apply your service presented that it is not outrageously high priced.
Dale P
2007-10-02 23:37:49 UTC
A quick search finds many answers:



http://support.microsoft.com/kb/825498



http://www.zubrag.com/scripts/password-protect.php



http://www.2createawebsite.com/enhance/password-protect.html



http://www.htmlgoodies.com/tutorials/getting_started/article.php/3479531


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...