2012-04-10, 07:43 AM
This is a nice little trick to if you want to block out people ips from your site 1 by 1 or not
I have seen many post asking how just and I wanted to share in detail/with pics how so their is no more confusion
Ok so step one
Open your ftp browser like filezilla or whatever you use
Ok now once you are logged in please look for the file called ".htaccess"
Once you find it
Put it like on your desktop
Now left click-open as-and use notepad
Ok so now on mine the first couple of lines look like this
Now look at the code I am about to put here as it is what you will be using also to block a persons ip
put it in the general same area
Here is the code here
Now watch
Now see in the pics the dummy ip to show this tutorial and how it is working etcetera now watch
Now move the file back on the root of your site and overwrite the old one (ALWAYS KEEP A BACKUP OF THE OLD ONE)
Now once I upload that file and refresh the page I get this
Well I hope that this could help you because I have seen a few confused people
may make a plugin soon that can do it I am not sure
but for now updating the .htaccess is the most security and effective way to do it
hope it helped!!!
Also this was all just made and done by me pics taken and all of you where wondering!!
I have seen many post asking how just and I wanted to share in detail/with pics how so their is no more confusion
Ok so step one
Open your ftp browser like filezilla or whatever you use
Ok now once you are logged in please look for the file called ".htaccess"
Once you find it
Put it like on your desktop
Now left click-open as-and use notepad
Ok so now on mine the first couple of lines look like this
Now look at the code I am about to put here as it is what you will be using also to block a persons ip
put it in the general same area
Here is the code here
Quote:order allow,deny
deny from Put ip here
allow from all
Now watch
Now see in the pics the dummy ip to show this tutorial and how it is working etcetera now watch
Now move the file back on the root of your site and overwrite the old one (ALWAYS KEEP A BACKUP OF THE OLD ONE)
Now once I upload that file and refresh the page I get this
Well I hope that this could help you because I have seen a few confused people
may make a plugin soon that can do it I am not sure
but for now updating the .htaccess is the most security and effective way to do it
hope it helped!!!
Also this was all just made and done by me pics taken and all of you where wondering!!