Maybe your case was different from mine, but I want to share with you how I fixed this issue, hoping will be useful for other people.
In my case the issue was caused by All In One WordPress Security Plugin (AIOWS), due to “IP RETRIEVAL SETTINGS” configuration.
My site is hosted on AWS, via Elastic Beanstalk environment and I have different instances under a load balancer.
In this case seems the last version of this plugin is no more able to correctly detect the IP of the clients and so start blocking them by redirecting to 127.0.0.1
I fixed this issue by simply changing that configuration from “REMOTE_ADDR (Default)” to “HTTP_X_FORWARDED_FOR”.
You can change this from: “WP Security” => “Settings” => “Advanced Settings”:
Related Posts:
- WordPress redirecting connections on port 8080 to 80
- Exclude a path from WordPress using .htaccess redirects (Apache)
- WordPress site redirects to different wordpress domain on the same server after reuploading db backup
- Localhost wordpress site redirects to public site
- Redirect from home page to post list page?
- How to migrate production WordPress to Localhost
- Site loads very slowly (4-5 minute load time)
- WordPress on a local machine redirecting to xampp dashboard page [closed]
- 301-redirect directives for blogger to wordpress migration
- Trouble running local WordPress in Google App Engine
- Redirect – remove custom query string
- Redirecting connection from IP to localhost
- How do I do a redirect to WordPress permalink with post id via htaccess?
- How to redirect only 404 pages with htaccess in WordPress
- WordPress localhost site always redirect to live site [closed]
- Unusual Apache2 Error Causing WordPress Redirect Error?
- 301 Redirect Loop www to non-www – Nginx + Apache2
- Can I redirect the http request towards an old folder to the homepage using .htaccess file? [closed]
- PHP header(Location: …): Force URL change in address bar
- Redirect old php link to wordpress link in .htaccess
- WordPress localhost site redirect to live site
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- wp_redirect() function is not working
- My wordpress multisite homepage redirects to signup page
- Login redirect to previous page
- Prevent access to single post types
- WordPress install enters an infinite loop
- 301 redirect not working through .htaccess
- handling login/logout redirects
- 302 redirect instead of 301 after switch to HTTPS
- How do I skip wordpress’s 404 handling?
- Redirecting to home-page when saving any edited code
- Temporary redirect prevents getting $_POST array
- Can WordPress redirect to a “similar page” in case of 404 error
- Hacked website redirect, only on desktop, help with restoring it [closed]
- Can I check for maintenance mode before redirecting to subdomain?
- WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]
- Custom Registration page – prevent redirect to wp-login.php?action=register
- How to target specific user role?
- How to auto login after registration? [duplicate]
- Migrating from http to https
- How to redirect to home page after registration?
- Stuck In a Redirect Loop
- Redirect to Current Page after Login
- Handle regular expression based redirects without .htaccess
- Login redirect problem
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- how to setup .htaccess: redirect/ /%postname% to /%category%/%postname%
- Redirect some of the languages on a multi-language site
- How to redirect to specific url if contains specific text in url?
- Redirecting old permalink structure to new in htaccess
- WordPress redirect, output headers already sent
- Why is there a status message “302 Found” on top of the site?
- How to forward all requests starting with a specific folder name to the same folder
- Custom Login Form – Redirect user to login page if not logged in
- Use two different index pages
- How to redirect from one WP site to another
- Extra Text in URL
- wp_redirect and current_user_can issues
- Moving wordpress to different url/server creates redirect loop
- WP_List_table with form of method=GET redirects to wrong url after submit
- Serving WordPress in it’s own directory on localhost on WAMP
- Redirect wordpress website’s subpage to root [closed]
- My Cloned WP site keeps redirecting to the old one
- Can’t do 301 Redirect, Why?
- WordPress Permalink Problem 404
- Is there way to redirect all blog post pages to Home page?
- Interested in redirection techniques for one-page themes
- Select post from dropdown and add query args not working
- Trying to map a PURL like url to a page
- A question about .htaccess
- Can’t login to WordPress admin panel after changing domain to use WordPress pages as a fallback from React
- WordPress multi domain: page redirect to main domain whenever WordPress do the URL guessing issue
- Puzzled at HTTP/2 301 response header
- date based redirect in wordpress
- Applying ‘middleware’ to a url before redirecting? Does WP have built in mechanism for this?
- How to regenerate RSS feed URL like FeedBurner?
- ERR_TOO_MANY_REDIRECTS when switching from good database to old database
- Redirect to /404/
- domain redirects to subdomain
- Having a different landing page for returning users
- How to create multiple Rewrite-Rule for various site in single htaccess?
- how can i find malware code and remove from wordpress site to stop it redirecting to hackers click view pages
- Redirect after plugin activation
- Redirect affecting development folder
- All devices on my network redirect me to an old domain
- how to write 301 redirect code for woocommerce product
- WordPress multisite and redirect to subpage
- How to redirect 404s that generated for css&JS files?
- Custom, conditional redirect on logout
- International characters in slugs to redirect to
- login page not working [closed]
- Debugging a redirect loop affecting only certain pages
- noheader on the user/frontend side
- Solution for WordPress URL structure changes and 301 redirects?
- WordPress redirect from one directory to another but exclude wp-admin and wp-login.php
- How can I redirect foreigners by IP to other URL in WordPress?
- WordPress site redirecting to developers URL
- How to use the HTTP API (wp_remote_get) instead of cURL?
- Redirect certain 404 pages to parent page