clstrfck Posted October 20, 2020 Posted October 20, 2020 (edited) Not having much success at using an .htaccess file to allow only my ip address.Tried this solution from Byron posted at the bottom of the page.https://www.helionet.org/index/topic/38198-how-to-protect-folder-and-its-child-files/?hl=.htaccess&do=findComment&comment=169431Forbidden. Also tried the apache 2.4 syntax" Require up xxx.xxx.xxx.xxx Forbidden once again. Are .htaccess rules disabled on the apache server "Johnny"? Thank you for your time. Edited October 20, 2020 by clstrfck
Krydos Posted October 20, 2020 Posted October 20, 2020 That deny,allow stuff, apart from being incredibly confusing, has also been deprecated for years, and was removed entirely in the latest version of Apache. I'm actually surprised it was still working as little as 10 months ago. This is what I use in .htaccess RewriteEngine On RewriteCond %{REMOTE_ADDR} !65.19.143.5 RewriteCond %{REQUEST_URI} !construction.html$ RewriteRule ^(.*)$ https://clstrfck.heliohost.org/construction.html [R=302,L]
clstrfck Posted October 20, 2020 Author Posted October 20, 2020 Thanks for the quick response Krydos and the .htaccess snippet.I will try it out and update you as to the progress. (or lack there of)
clstrfck Posted October 20, 2020 Author Posted October 20, 2020 (edited) .htaccess works with the Require ip xxx.xxx.xxx.xxx but not in the subdomain that the helioshost.org system provides. One line in the standalone TLD that went live a little while ago, works perfectly. My technical expertise in web hosting is minimal so it's not clear to me why this occurs. Thanks Krydos for the assistance. Maybe this will help another member. Please mark this as solved. Edited October 21, 2020 by clstrfck
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now