15 Jun
Restrict access to your web site by IP address and/or network, with the ability for each restriction entry to be based on day(s) of week and/or time of day. In addition, each restriction can also have a separate message displayed to the end-user and a password in which the restriction can be bypassed.
Features Include:
Why did I create this plugin you might ask, well because I really didn”t want people at my place of employment accessing my web site during the work day. Sure I don’t mind if they come to my site (not that there’s really anything to read), but I didn”t want it to happen during business hours. That could come back to bite me!
Download JC-IPRestrictions - as well as installation directions, instructions on use, screenshots and more – from the official Wordpress Plugins Directory.
Good Luck!
37 Responses for "JC-IPRestrictions"
Thank you. This solved a little problem I was having.
Does JC-IPRestrictions work with Wordpress 2.7?
Yes Matthias, I’m running JC-IPRestrictions without problems on 2.7. If you have any problems please let me know and I’ll help troubleshoot.
Hi. I managed to restrict myself from my website and had to remove the JC-IPRestrictions directory from the command line on my shell account.
On re-installing it and reactivating it I am again ‘locked out’. I’m presuming that variables are still in the db from the previous install. Is there a way to completely de-install it so I can re-install with my configuration options fixed?
Many thanks in anticipation,
Tomas
Tomas, I did see this until now. Are you still having issues?
The plugin was written so when you reactivate it is disables blocking pages. Are you sure it’s the plugin causing the restriction?
I’m trying to block everyone except a handful of IPs rather than to block just a handful of IPs. Or to put it another way, I want to allow only certain IPs to access a site and any IP that isn’t specified in the list would be blocked.
Is there a way to accomplish this?
Thanks!
Config question: Are the quotes support to be included? I.E.
1. `Net=95.84.1.1|Mask=255.255.0.0|Message=Go away`
or without quotes:
2. Net=95.84.1.1|Mask=255.255.0.0|Message=Go away
No Quotes.
Thank you for writing this plug-in and for sharing it. It’s now making my like much simpler!
Josh:
I installed the plugin and entered an ip address that I want blocked, but it appears that the person still is accessing my site. What am I doing wrong?
Josh
I installed the plugin and entered the IP address that I want to block, but that person still seems to be accessing my site. What am I doing wrong?
Can this be used to restrict just selected pages/menu items?
Wayne: I have absolutely no idea without you sharing the code you are using plus the IP address you are trying to block. In addition, how does this person receive their IP address?
Stuart: No, it only blocks your entire site. There are other plugins (of default WP passwords) that will block pages and/or menu items.
I am not able to restrict access ..I blocked a ip used the same ip via proxy yet i am able to access the site.What is the problem?
Sham: I have absolutely no clue what the problem is. Where are you getting the IP address that you are blocking? What is the IP address.
Josh: I like the idea of the plugin but what to do if no “password bypass box” is displayed??
Can you post the line you are using in the configuration box?
I am using this plugin on my site and really like it. I have tested different ip’s and verified that the plugin is working, but I have one particular ip that I have blocked and yet they are still able to access the site.. any clue?
I am currently using this:
Net= 99.177.88.250
but have tried all the variations in the documentation and to no avail.. this user keeps on coming.
Thanks!
Hi MIke,
This might sound silly but I noticed there’s a space between the equal sign and the first 9. If this space is in your configuration it will cause the IP address to be allowed. Does the space exist in the code?
Wow, now I feel so stinking lame. I had all my others ips i am blocking set up right, but had a space in that one.. did not even notice it… that was so simple… thanks so much for the feedback.
No worries – we’ve all experienced that feeling one time or another! I’m just glad the plug-in is working for you! Enjoy and good luck!
Hi, does it work with wp 2.8.4? Thanks…
Will a back slash work between the ‘Net’ and ‘Mask’? If not, how in tarnation do you make the horizontal line. No laughing or ridiculing, please.
It’s the good ‘old “pipe” character. On a standard keyboard it’s above the forward slash “\” (without the quotes).
Thanks, Josh. One more question. Is there a way to view any type of report showing attempts from restricted ip’s?
Sorry April, currently there is no reporting.
hey, is there a way that i can restrict certain pages on my site?
thanks in advance
Thank you!
It was wonderful if you could mix your plugin with something like askimet.
See ya! great job
typical free crap that should be charged for.
no info on how to block all but one IP,
no clear info on how to put password field in restriction message. (lock yourself out, ofcorse easy to disable plugin )
u know, just do it right, and charge 9.95 for it. ppl will pay and you will provide a much better product.
all will be happy. but this crap, with no real support and begging for donations..sad
I almost deleted the comment above but realized responding would be the correct thing to do:
–
“No info on how to block all but one IP”
–
Yes, you are correct, there is no information on how to block all but one IP address. There’s also no information on how to make ice cream in the owners manual of my coffee maker. That’s because it isn’t supported. This plug-in does not support the ability to block all IP addresses except those defined. It’s IP-Restrictions not IP-Exceptions… I do know there are a few plug-ins that offer this type of functionality and, if you’re on a Unix/Linux platform, you can also utilize htaccess rules.
–
“no clear info on how to put the password field in restriction message”
–
If you take a look at the “Other Notes” section of the readme.txt file you’ll find detailed information on how to include the password field on the restriction page. Guess you missed that part?
–
“u know, just do it right, and charge 9.95 for it. ppl will pay and you will provide a much better product.”
–
Why would I want to charge for something that I threw together for a personal project? I’d much rather provide the plug-in for free and offer “ok” support. Yes, I won’t respond to a comment or an email that asks me if the plug-in does something that its not designed to do because, well, RTFM. Although I’ve answered all comments and/or emails over the years and typically within a few days. Now if a few days isn’t good enough for you I’ll tell you that someone spending $9.95 one time will not make me offer a quicker response. Not only would that not pay for the time that it took to develop the program she economics say that I’d end up losing money (time is money, right) if I charged for any of my plug-ins. I provide support because I chose to provide support – because I try to help people even when I need to respond to comments like yours.
Directly from the readme.txt file:
I provide support via my web site, although just because you post a request for help doesn’t mean I will have time to answer your question. This is a free plug-in and as such, you aren’t guaranteed support. Then again, I’ll help as much as I can and have time for.
–
“all will be happy. but this crap, with no real support and begging for donations..sad”
–
Begging? Where do I beg for donations? With 1,233 downloads since I’ve released this plug-in no one has donated – not even 0.01 – for any of my plug-ins.
Directly from the readme.txt file:
Your plug-in rocks! Can I donate?
Absolutely!!! Visit web site for more information!
The link back to my web site just links to the home page. Not a donation page, not a special “hi, thanks for using my plug-in” page, just the home page… I guess that’s begging to you.
Bob – Hopefully I’ve answered your questions properly.
(and for those of you who know me, I didn’t proof this at all – hopefully that’s okay with Bob)
I’m using this line in the configuration box:
Net=131.165.63.132|Password=kmd2013|Message=You’ve been blocked!
But no “password bypass box” is displayed. What am I doing wrong.
Mette:
What is the IP address of your WAN connection? You can find out by going to http://www.ipchicken.com.
Josh:
ipchicken returns this address: 87.51.172.212
Mett: Is this the IP address you are trying to block? I’m confused – are non of the IP addresses you are trying to block being blocked or only one?
Josh: The IP adresses are beeing blocked. My problem is that “password bypass box” is not beeing displayed.
As I wrote before I use this line:
Net=131.165.63.132|Password=kmd2013|Message=You’ve been blocked!
Mette: I guess without seeing any of your configuration I can’t really help out. Would it be okay with you if I could log into your wordpress site as an admin?
Josh – It will be okay.
If you mail me I’ll answer with username and password.
And thank you very much for helping out.
Leave a reply