0

I have Litespeed and Directadmin on my server and i want to create access control with ip list and show 403 custom error to customers. I can deny all requests and allow from a IP but how can i show custom 403 error page on my litespeed ?

Mahdi Alikhani
  • 121
  • 1
  • 3
  • 13
  • Try to put "ErrorDocument 403 /403.shtml" in the top of your .htaccess file. And please replace 403.shtml with your real 403 custom page location in server – Eric Nov 01 '21 at 02:10
  • where is htaccess file? I can't find it – Mahdi Alikhani Nov 01 '21 at 04:53
  • under your document root, create it if it does not exist. https://www.hostinger.com/tutorials/locate-and-create-htaccess – Eric Nov 08 '21 at 03:04

0 Answers0