Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
Apache Web Server
5:07 pm Jun 18, 2026
This page requires javascript.
Forum Moderators:
phranque
Message Too Old, No Replies
Show a directory based on IP address
using .htacess
gosman
Msg#:4093211
11:17 am on Mar 8, 2010
(gmt 0)
Is there a way of showing a directory only to select range of IP address using .htaccess. Everyone else would get a 404?
gosman
Msg#:4093462
6:48 pm on Mar 8, 2010
(gmt 0)
Bump ;)
g1smd
Msg#:4093484
7:27 pm on Mar 8, 2010
(gmt 0)
Yes there is.
What code have you tried so far?
gosman
Msg#:4094590
11:02 am on Mar 10, 2010
(gmt 0)
Hi G1smd.
I figured it out. I used index.php in the directory to detect the ip address and and send a 404 header if it didn't match my list of IP's
Regards
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
May
,
Apr
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
June 2026 Google Search Observations
Quite quiet in here, anyone know why?
Most people don't read anymore
AdSense Earnings and Observations - June 2026
2025 Link Building Trends and Insights
Big websites now dead (due to company decisions)
How has AI changed your work?
Home
Forums Index
Server Side
/
Apache Web Server
5:07 pm Jun 18, 2026