Henry Aspden

Member
Nov 2, 2015
14
2
53
Leeds, UK
cPanel Access Level
Root Administrator
I have the following folder structure

domain.com (/public_html/)
sub.domain.com (/public_html/sub/)
sub.domain.com/dir1/ (/public_html/sub/dir1/)
sub.domain.com/dir1/dir2/ (/public_html/sub/dir1/dir2/)


if I put the following in my .htaccess file at any of these directories

Code:
DirectoryIndex index.php

require valid-user
<RequireAny>
Require ip x.x.x.x
</RequireAny>
It has no effect when loading any files in these directories.

Apache did follow these rules set, but since switching to litespeed enterprise it has meant that IP restrictions have been ignored

What am I missing here?
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
423
200
118
IN
cPanel Access Level
Root Administrator
Try:

Code:
order deny,allow
deny from all
allow from Your-IP
 
  • Like
Reactions: Henry Aspden
Thread starter Similar threads Forum Replies Date
L Server Management 1
4 Server Management 10