Jump to content

Admin Area Redirect


KyleJ144

Recommended Posts

Hey,

 

I am trying to only allow my IP Address to use the admin area and i want an error message to pop up if the IP Address is not listed or event for them to be redirected to my official hosting website home page and when i change this then the admin area just messes up.

 

Any help for the above will be greatly appreciated

 

Thanks in advance

Link to comment
Share on other sites

2 hours ago, KyleJ144 said:

I am trying to only allow my IP Address to use the admin area and i want an error message to pop up if the IP Address is not listed or event for them to be redirected to my official hosting website home page and when i change this then the admin area just messes up.

.htaccess inside your admin folder would be the simplest way (if you don't need an error message) - you can block/whitelist IPs and/or add additional username/password options.

https://docs.whmcs.com/Further_Security_Steps#Restrict_Access_by_IP

Link to comment
Share on other sites

2 hours ago, brian! said:

.htaccess inside your admin folder would be the simplest way (if you don't need an error message) - you can block/whitelist IPs and/or add additional username/password options.

https://docs.whmcs.com/Further_Security_Steps#Restrict_Access_by_IP

Okay, Thank you and how do your add an error message or redirect users away from the admin panel if their IP Address is not listed.

Link to comment
Share on other sites

1 hour ago, twhiting9275 said:

Add this to the top, of .htaccess, before the limit rules

ErrorDocument 403 /index.php

This will take people directly back to your index page. Want them directed elsewhere, then change that to be where you want them to go

I have tested it but it does not come up with the error and redirect. I have supplied a screenshot of the way the admin area turns out

28537925_2458497841041951_1962463143_n.jpg

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated