Announcement
Collapse
No announcement yet.
Message being displayed in Hepsia CP
Collapse
X
-
My bad clivejo, I was reading your "fix" code LMAO!!!!! not the cp message code you posted..... had me all confused lol!
-
What I'm saying is that the code given in the CP Message wouldn't work properly. It would deny all with NO exceptions, therefore blocking the allowed IP address too.
-
This is what it should be, to perform the correct action. This code is saying "Deny from all, but allow from x.x.x.x" which is what you want, to protect your wp-admin folder. You replace the x.x.x.x with your static ISP IP address therefore only that IP has access to the folder.
-
Ok continuing class then what is the reason
# Block access to wp-admin.
order deny,allow
allow from x.x.x.x
deny from all
will not work?
-
I would say deny because your order is deny first then your closing rule is deny all, the rules conflict in order of execution...
Leave a comment:
-
Consider the following
Code:order deny,allow allow from all deny from all
Leave a comment:
-
Got ya...... so "order allow,deny" would be the proper syntax then correct?
Leave a comment:
-
It depends on the statement "order allow,deny" or "order deny,allow" which is performed first.
Reading the code they give in the CP message, I dont think its going to work.
Leave a comment:
-
"allow from x.x.x.x" would be an exception to the "deny from all" statement wouldn't it clivejo?
Leave a comment:
-
Message being displayed in Hepsia CP
When I log in I’m seeing the above message. This is great information but if I'm reading the code right, this would block all access including the allowed IP!!
Let me explain
Code:order allow,deny
The correct code should be
Code:# Block access to wp-admin. order deny,allow allow from x.x.x.x deny from all
Last edited by clivejo; 12-04-2014, 02:36 PM.Tags: None
Leave a comment: