Possible to modify "Too many IP addresses accessing secure area!" output?

Hey all,

I was wondering how we would be able to modify the output presented to a user when they breach the Simultaneous Login Monitoring parameters?

At the moment, they are presented with two lines of left-aligned text in Times New Roman, within their web browser and I feel that this could be greatly improved (for our particular use).

Ideally, we’d like to be able to redirect them to a page (also protected by S2Member) which would explain that they’ve breached this parameter, and to provide them with a better user experience.

Any hints, tips or suggestions would be gratefully received! :slight_smile:

1 Like

This is the line in src/includes/templates/errors/ip-restrictions.php

<?php echo _x('503: Service Temporarily Unavailable
Too many IP addresses accessing one secure area!
Please contact Support if you need assistance.', "s2member-front", "s2member"); ?>

See: https://s2member.com/kb-article/quick-translation-changing-wordsphrases/

I haven’t tried it, but I guess you could add a javascript redirection there to the page you want, too. https://www.w3schools.com/howto/howto_js_redirect_webpage.asp

E.g.

<script>window.location.replace("http://www.w3schools.com");</script>

:slight_smile:

Awesome, thanks Cristian!