Security Questions (win7 64) 1.7.7 [SOLVED]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Security Questions (win7 64) 1.7.7 [SOLVED]

Postby jimmy2x2x » 05. November 2011 22:32

I am new to XAMPP so please go easy on me!

I have it installed and working great, but I have a few security questions that I just cant seem to figure out.

1) I am accessing my MySQL database from an ACCESS front end in a remote location and this is working fine, how do I set a password for this connection?

2) I have set the "XAMPP DIRECTORY PROTECTION (.htaccess)" username and password from http://127.0.0.1/security/index.php - how do I clear this information?

3) is there a way to stop users from browsing a directory while the server can access it (ie I have a Gfx sub folder from my main project and would like the site to have access but the users not to have access to this folder.

Many thanks for this amazing project, thanks to XAMPP I have started to do something productive with my PC!
jimmy2x2x
 
Posts: 2
Joined: 05. November 2011 22:25
Operating System: Win 7 x64

Re: Some simple security questions

Postby Sharley » 06. November 2011 02:00

1. Look in phpMyAdmin at the Privileges tab for the user of the database you are connecting to and see if this user has a password and if not then set one and tell your Micro$oft product how to connect using the user/pass you just set - I know nothing about your M$ product.


2. Delete the .htaccess file in these folders:
\xampp\htdocs\xampp folder
\xampp\security\htdocs


Delete this file (a renamed .htpasswd file):
\xampp\security\xampp.users


3. Create a .htaccess file in the sub folder you wish to protect and add these lines:
Code: Select all
Order Deny, Allow
Deny from All
Allow from [your Gfx site's IP address or domain name - minus these brackets]
For example:
Code: Select all
Order Deny, Allow
Deny from All
Allow from mygtfx.site.com
or
Code: Select all
Order Deny, Allow
Deny from All
Allow from 123.123.123.123

If that is not what you want then there is plenty of .htaccess related reading on the Internet, for example:
http://www.javascriptkit.com/howto/htaccess.shtml
http://httpd.apache.org/docs/2.2/mod/mo ... html#order
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Some simple security questions

Postby jimmy2x2x » 06. November 2011 06:15

Got everything working as intended now, Thank you!
jimmy2x2x
 
Posts: 2
Joined: 05. November 2011 22:25
Operating System: Win 7 x64

Re: Some simple security questions

Postby Sharley » 06. November 2011 06:18

Your welcome and thanks for the feedback. 8)

Best wishes. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 78 guests