I want to allow only specific ip address locations to access webpages on the sme server.
I have not found any documentation on the forums that would be a how to.
So basically I want a hidden webpage for certain locations to access web pages that have php scripting code.
Even if I used a password protected web page, I want to restrict the pages by ip address also.
Many of you have seen security problems to websites. I am going to try and protect sensitive data in any way possible
and I like a lot of others are either worried or concerned about possible break ins to data.
So i have an ear for any educated thoughts on this as well.
I have tinkered a lot with the server that I use to test on and really because of the way sme server is setup,
I am wandering my way through how to do this with out hurting or breaking something else.
From what I have done, right or wrong here it is and I really need somebody to look over my back on this.
so here is what i have done
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
nano /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99SecureIbayWithIP
192.168.9. is my local network
inserted into the file 99SecureIbayWithIP
<Location /webibayname>
Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.9.0/255.255.255.0
Allow from localhost
Allow from xxx.xxx.xxx.xx0
Allow from xxx.xxx.xxx.xx1
Allow from xxx.xxx.xxx.xx2
Allow from xxx.xxx.xxx.xx3
Allow from xxx.xxx.xxx.xx4
Allow from urlweblocationa.com
Allow from urlweblocationb.com
Allow from urlweblocationc.com
Allow from urlweblocationd.com
Allow from urlweblocatione.com
</Location>
expand-template /etc/httpd/conf/httpd.conf
/etc/init.d/httpd-e-smith restart
I am not sure if I have the right file name or if there is more than one file to use
In my testing, the results seem to work but not on a ibay you have password protected.
The password dialog in a browser does not even popup.
Maybe somebody can straighten me out on how this works to get sme server do what i would like to do.
Thanks in advance.
I am not sure whether the locations of 127.0.0.1 and localhost are even needed to be listed.