mferry Posted January 30, 2019 Share Posted January 30, 2019 Folks, In the documentation it says about DENY/restrict access to the admin area by using a .htaccess file. I want to stake this a step forward. If you don't have an IP in the list of 10.x.x.x then you are redirected to another website with an UNAUTHORIZED page. The .htaccess file works for the main admin section, but if you are ALLOWED and you get login to the admin area then certain LINKs don't work anymore. such as the "Addons -- Apps & Integrations" -- I get page not found. The htaccess file I used (I am no expect with htaccess). RewriteEngine on RewriteCond %{REMOTE_ADDR} !^10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ RewriteRule ^(.*)$ http://domain.com/?id=95 [L] 0 Quote Link to comment Share on other sites More sharing options...
mferry Posted February 2, 2019 Author Share Posted February 2, 2019 Folks, This has been resolved. I got it figured out while I was waiting for my question/post to be moderated approved... Have a nice day. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 3, 2019 Share Posted February 3, 2019 11 hours ago, mferry said: I got it figured out while I was waiting for my question/post to be moderated approved... and I assume that you're going to share the solution with others in case they find themselves in a similar situation? 0 Quote Link to comment Share on other sites More sharing options...
mferry Posted February 5, 2019 Author Share Posted February 5, 2019 My .htaccess file in the WHMCS directory is as follows. If you not on the ALLOW list...you get the 403 redirect. <Limit GET POST> order deny,allow deny from all allow from 10. allow from 208.74.120.226 </Limit> ErrorDocument 403 http://domain.com/?id=95&URL=client.hosting.domain.com/ADMIN/ 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.