Hi all,
need some help with my wordpress site & how to restrict access to it to specific IP range.
Hi all,
need some help with my wordpress site & how to restrict access to it to specific IP range.
What have you tried already?
Are you able to use .htaccess instead?
Focus on Function Web Design
Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps
-DW [Deadweight]
Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved
The best is to use .htaccess.
If you cannot restrict it within .htaccess, then you could use the following PHP code:
where "128.123.154.15" is the IP address which is allowedPHP Code:
<?
if (substr($REMOTE_ADDR != "128.123.154.15") {
echo "Access not allowed!";
exit();
}
?>
Have access to .htaccess file, thank you![]()
Bookmarks