Shared IP vs Dedicated IP, and How to Allowlist Your Admin IP
For most websites, the choice between a shared IP vs dedicated IP is less significant than hosting sales pages might suggest. A shared address is generally fine for HTTPS and search rankings, while a dedicated IP mainly matters for email sent directly from your server and for IP-based access rules.
The first half of this guide is about your website’s server IP address. The second half covers a different address: the public IP of the connection you use to log in as an administrator. We’ll explain how to allowlist that address so only approved connections can reach your admin area.
Shared IP vs Dedicated IP on Web Hosting

Photo by Tony Marinescu on Unsplash
On shared hosting, multiple accounts use the same server and typically share its IP address. A dedicated IP, by contrast, is assigned exclusively to your hosting account. It is usually available as an add-on or included with VPS and dedicated server plans. Your domain points to the relevant IP address in either case, so visitors generally won’t notice a difference.
What Your IP No Longer Decides: HTTPS and SEO
HTTPS used to be a common reason to buy a dedicated IP. Server Name Indication (SNI) allows a browser to identify the website it wants to reach during the initial TLS handshake. The server can then select the correct SSL/TLS certificate even when multiple websites share one IP address, as Cloudflare explains.
SNI was introduced in 2003. Without it, a client connecting to a server that hosts multiple HTTPS websites on one address may receive a certificate that does not match the requested domain.
The SEO argument for dedicated IPs is just as weak. In April 2024, Google’s John Mueller explained that “there are a limited number of IP addresses, it’s normal for them to be shared,” and that shared hosting and CDNs commonly work this way, as Search Engine Roundtable reported. When asked whether sharing an IP with 129 other websites, many of them reportedly spammy, could hurt rankings, his short answer was: “tldr: no.”
In other words, sharing an IP address with other websites does not automatically damage your search rankings.
Email Reputation and When a Dedicated IP Is Worth the Cost
Email is where a shared IP address can matter. Google’s sender guidelines explain that “the activity of any senders using a shared IP address affects the reputation of all senders for that shared IP address.” If your website sends order confirmations or form notifications directly from a shared server, the sending practices of other users on that IP can affect your email deliverability.
This only applies to emails sent from your web server. If your messages go through Google Workspace, Microsoft 365, or a dedicated email delivery service, they use that provider’s sending infrastructure. In that case, buying a dedicated IP for your website does not change the reputation of the addresses used to send those emails.
The same guidelines require valid forward and reverse DNS records, including a PTR record for the sending IP, and SPF or DKIM authentication for all senders. Bulk senders must configure SPF, DKIM, and DMARC. Google also recommends keeping spam rates in Postmaster Tools below 0.10%.
A dedicated IP gives your server its own sending-IP reputation, provided your email is actually sent from that address. This also means you are responsible for building and maintaining that reputation. A new IP does not automatically improve deliverability; it needs proper authentication, consistent sending practices, and a gradual build-up of sending volume.
A dedicated IP tends to be worthwhile when you send a steady volume of email directly from your server, when a partner’s firewall requires a fixed IP address to be allowlisted, or when you need to access your server directly by IP. Hosting providers usually offer dedicated IPs as recurring add-ons, and prices vary, so check the relevant plan details. If you are still choosing a hosting package, this guide on matching a hosting plan to your website goals explains what to compare.
Why a Home Connection Breaks Admin Allowlists

Photo by Nubelson Fernandes on Unsplash
Everything above is about the server’s address, the one visitors reach. From here on, the address that matters is different: the public IP of the connection you use when you log in as an administrator.
An allowlist (often called a whitelist) lets only approved IP addresses reach areas such as wp-admin, SSH, or a hosting control panel. Other addresses are denied access. Remember that a rule allows an address, not a person.
On WordPress, the login form lives at a separate path, /wp-login.php. This means a rule that restricts only /wp-admin/ does not automatically protect the login page.
The rule also works only while your own public IP address remains the same. Many home connections receive a dynamic public IP address from their internet provider. This address can change periodically, for example, after a router restart or when the provider renews its address lease, although the timing depends on the ISP. Freelancers who move between home networks, coworking spaces, and mobile hotspots may also connect from different public IP addresses.
If your address changes, you may lose access until someone updates the allowlist.
Plan a way back in before tightening access. Keep an alternative access method, such as your hosting control panel or provider console, that does not depend on the restriction. Keep your existing administrator session open while testing a new one from a separate browser session or device. That way, a configuration mistake is less likely to turn into a support ticket.
How to Allowlist an IP Address on Your Server and Firewall

Photo by Valentin Lacoste on Unsplash
How to allowlist an IP address depends on which layer of your server infrastructure you control. Each configuration example below belongs in a different location. First, check your current public IP address and replace the placeholder 203.0.113.25 in the examples with your own address.
Treat these examples as ways to restrict access to administrative areas, not as a complete security solution. WordPress plugins often use admin-ajax.php to process requests from public pages. Restricting the entire /wp-admin/ directory can therefore break features that visitors rely on. Test the public website after every change, and keep strong passwords and two-factor authentication enabled.
Apache
Apache 2.4 uses the Require directive, which accepts a single IP address, a partial address, or a CIDR range. Its documentation recommends using this directive instead of the older Allow, Deny, and Order directives.
The following block belongs in the main server or virtual host configuration. Apache does not allow <Directory> sections in .htaccess files. If you only have access to .htaccess, you may be able to place a Require ip directive in a .htaccess file inside the wp-admin directory, provided your hosting configuration permits it.
<Directory “/var/www/example/wp-admin”>
Require ip 203.0.113.25
</Directory>
The path /var/www/example/ is only a placeholder. Replace it with the actual filesystem path to your WordPress installation.
Remember that /wp-login.php is separate from the wp-admin directory. Restricting wp-admin alone does not necessarily restrict access to the login page. You can add a separate rule for the login file in the appropriate server configuration or root .htaccess file, if your host permits it:
<Files “wp-login.php”>
Require ip 203.0.113.25
</Files>
These examples assume a standard WordPress installation. If your login URL or server configuration has been customized, the rules may need to be adjusted.
nginx
In nginx, the access module evaluates allow and deny rules in sequence until it finds a match. This means the allow directive should come before deny all.
The challenge is choosing the correct location for these rules. nginx gives regular-expression locations priority over ordinary prefix locations such as /wp-admin/. If PHP files are handled by a block such as location ~ \.php$, requests to administrative PHP files may be processed by that block instead of the prefix rule.
Do not simply add the allow and deny directives to the general PHP block. That block may handle every PHP page on your website, and restricting it could prevent public pages from working.
The configuration needs to cover the administrative PHP files and /wp-login.php without disrupting how static files and PHP requests are handled under /wp-admin/. The correct arrangement depends on your existing server configuration. Read how nginx chooses a location before making changes, or ask your hosting provider to apply the restriction. Afterward, test both the administration area and the public website.
SSH
For SSH access, the sshd_config option AllowUsers accepts a USER@HOST pattern, and the host portion can also specify a CIDR range. Add the following line to /etc/ssh/sshd_config, replacing deploy with your actual SSH username:
AllowUsers [email protected]
This is valid syntax for restricting that user to connections from the specified source address. See the OpenBSD sshd_config manual for details.
Reload or restart the SSH service for the change to take effect. Before applying it, make sure you have another way to access your server in case the rule prevents your connection.
Cloudflare and Other Reverse Proxies
If your website sits behind Cloudflare or another reverse proxy, your web server may see the proxy’s IP address instead of the visitor’s real IP address. In that situation, the Apache and nginx restrictions described above could block your access.
SSH is not affected because it does not pass through the website’s reverse proxy. For web traffic, you can restore the visitor’s real IP address at the server level using mod_remoteip in Apache or the real IP module in nginx. Make sure forwarded IP headers are trusted only when they come from the proxy’s own verified IP ranges.
Alternatively, you can apply the restriction directly at the proxy. In Cloudflare, you can create a custom rule that blocks requests to your administrative paths unless they come from your approved IP address or an IP list. Cloudflare recommends custom rules over IP Access rules for this type of restriction. Be careful with the Allow action in IP Access Rules, as it can bypass other security protections. Follow Cloudflare’s current documentation when configuring the rule.
Hosting control panels may also offer their own IP restriction or firewall settings. The names and available options vary between providers, so check your host’s documentation before making changes.
Before applying any restriction, make sure you have an alternative way to access your server, such as a hosting control panel, provider console, or out-of-band recovery method. Keep your current administrator session open, test access from a separate browser session or device, and verify that the public website still works. Do not close your existing session until the new rules have been confirmed.
Shared IP vs Dedicated IP: Getting a Fixed IP for Allowlisting
If you work from several places, you need an address that stays the same wherever you connect. A static IP from your internet provider is one option, but it belongs to that particular connection. It can give your home or office a fixed address, but it will not follow you to a coworking space or mobile hotspot.
A small cloud server with a fixed address that you connect through is another option. It can provide a consistent address from different networks. A dedicated IP VPN is a third possibility, and tested VPN reviews can help narrow down the options before you compare dedicated IP offers.
The provider’s pricing page should explain whether a dedicated IP is available and on what terms. The address is usually reserved for one account, allowing you to use the same allowlist entry across different networks.
When comparing offers, check whether the address is truly static or only static per server, which locations include it, and whether your traffic to the administration area actually goes through the VPN tunnel. A split-tunnel setup can send that traffic through your normal internet connection instead.
A dedicated VPN IP only helps with IP allowlisting if traffic to your administration area actually passes through the VPN connection. If split tunneling sends that traffic through your normal internet connection, the server will see your regular public IP address rather than the VPN address.
There are also practical trade-offs. A static VPN IP used only by you can make your activity easier to recognize than a shared VPN address if the same services see it repeatedly. It costs extra, and only some providers offer it. A VPN also does not replace strong passwords and two-factor authentication on your administrator account.
When you move to a new address, add it to the allowlist first, test access from the network you will actually use, and only then remove the old entry.




Leave a Reply