Once again, I created a WordPress plugin based on my own needs. This one allows you to test your website on your local server environment without worry that somebody is trying to access it from the outside.

It only allows ‘http://localhost’ and ‘http://127.0.0.1′ as the URL and will deny any attempt to use your server’s IP address (i.e. http://123.45.67.89). It prevents nosy people from seeing what your next website will look like before it’s ready! ;)

This is the first official WordPress plugin that I’ve made. It follows the WordPress plugin guidelines and can be activated easily on the plugin page.

To install:

  1. Unzip
  2. Upload to plugin directory (wp-content/plugins)
  3. Activate via the plugin interface in the admin panel

Donate

Do you like this plugin? I spend a lot of time developing these. Please consider donating so I can continue to update this and others.


Customizing: You can customize this plugin to do just about anything. You can redirect the visitor to another webpage, output an error message, or just leave it as it is and provide a blank page.

You can download it here:

Localhost Restricter Version 1.0

If there are any questions or comments, please reply to this topic in the comments below.