not sure where to put code
-
This is my first WP site and I just did the install a few days ago. The only thing I did was change the “Hello World” post. There are no images, links, plugins or other posts on the site. I checked my “latest visitors” log in cpanel this morning and there were 111 entries for the /wp-login.php (in a 4+ hour period). I’m guessing someone is trying to access the site?
I’ve been researching and found this:
Order Deny,Allow
Deny from All
Allow from x.x.x.x //( your static IP)but I’m not sure which folder it belongs (if any). Do I change the php code itself or do I add that code above into a .htaccess page in the wp-admin folder?
Is this the best route to secure the site? I’d prefer to do secure the site manually instead of with a plugin if I can, but I’m open to best practices suggestions.
Also – is there any way to stop these login attempts? I added an .htaccess list to block certain countries, but that’s just in my public_html root, not any particular folder, and it doesn’t seem to be working very well.
Thanks in advance!
- The topic ‘not sure where to put code’ is closed to new replies.