Steve Krause Posted February 28, 2011 Report Share Posted February 28, 2011 Just drop this code into your .htaccess file: You could also just block everyone from accessing the wp-config file via browser with the following code in your .htaccess file: # Block access to wp-config order allow,deny deny from all Blocking access to your .htaccess file is also a good idea: # Block access to htaccess order allow,deny deny from all Quote Link to comment Share on other sites More sharing options...
bigbootyjj Posted October 27, 2015 Report Share Posted October 27, 2015 John here and I know I'm far behind in reference to reply, but as for the code for blocking accesses, is there any specific location you'd suggest I place this onto a predominately php script? I know it's not supposed to be within a php script but was curious to know if it matters if I place them either above or in the middle or below all of them? Sorry but kinda new in making websites and prefer Dreamweaver over other web-making services that come with restrictions. Thanks, John 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.