How can I make 403 Forbidden

Status
Not open for further replies.

ellescuba27

Member
Messages
273
Reaction score
3
Points
18
How can I make it so a folder with no index.php or index.htm return Forbidden 403 when accessed?? Is it a CPanel trick, .htaccess or something?
 

ezadx10b

New Member
Messages
29
Reaction score
0
Points
1
use .htaccess and write

<Directory "/home/username/public_html/admin">
Order Deny,Allow
Deny from all
Allow from yoursite.x10.bz
Allow from 198.91.81.3
Allow from 127.0.0.1
Allow from 113.210.
</Directory>


#example only
 
Status
Not open for further replies.
Top