Forum Moderators: rogerd & travelin cat
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^xxx\.xxx\.xxx\.xxx$
RewriteRule ^(.*)$ - [R=403,L]
</IfModule>
Seriously - hosting companies still have bandwidth limits?
#Block access to wp-admin except for the listed IP addresses.
order deny,allow
#Host Server - Required for Cron Jobs
allow from xxx.xx.xx.xxx
#Work Server
allow from xx.xxx.xx.xx
#Home dynamic IP
allow from xxx.xxx.xxx.xxx
#Denying requests from all other IPs
deny from all
"#Host Server - Required for Cron Jobs
allow from xxx.xx.xx.xxx"
"1997 called. They want their bandwidth caps back. Seriously - hosting companies still have bandwidth limits?"
644 means that files are readable and writeable by the owner of the file and readable by users in the group owner of that file and readable by everyone else.
755 is the same thing, it just has the execute bit set for everyone. The execute bit is needed to be able to change into the directory. This is why directories are commonly set to 755.