LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-08-2008, 05:16 PM   #1
garbage29
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
.htaccess and MySQL IP Access control list


Hi linuxquestions..........

I already have a system where .htaccess looks at a MySQL database to try and authenticate users.

I want to add to the system, so that .htaccess also looks at the MySQL database and only allows IP addresses which are stored in that database.


Any ideas?

Luke
 
Old 01-09-2008, 10:07 AM   #2
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Hi,


Use 'Allow from' within your current <Limit> directive in the .htaccess, something like:
Code:
<Limit>
order deny,allow
deny from all
allow from trusted-ip-here
allow from another-trusted-ip
allow from some-trusted-host
</Limit>




Regards
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
access control list manoj.linux Linux - Enterprise 1 01-02-2008 04:08 PM
Access Control List over Network File System not visible ORBiTrus Linux - Server 1 04-29-2007 09:32 PM
Access Control list sheetu Solaris / OpenSolaris 1 08-07-2006 05:18 AM
Using access control list tuananhbirm Linux - General 3 04-17-2006 12:33 AM
win2k Printer Access control list problem zepplin611 General 0 01-29-2004 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration