TOPIC:

Blocking IPs 4 months 3 weeks ago #261256

  • Topic Author
  • FotoHijinx
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 8
  • Thanks: 0
Is there a way to block all IP addresses except Australia's?

I'm getting spam emails.

Please Log in or Create an account to join the conversation.

Blocking IPs 4 months 3 weeks ago #261257

  • Mirec's Avatar
  • Mirec
  • Away
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 1373
  • Karma: 2
  • Thanks: 75
Hi,

yes, you can do it, please see the link below:

crosstec.org/en/support/online-documenta...-one-ip-address.html

In this way you can block more than one IP address:
if($_SERVER['REMOTE_ADDR'] == "197.220.169.131, 196.240.254.55, 23.106.216.145, 185.147.130.39, 103.221.232.204, 196.245.237.148, 103.221.235.182, 23.94.171.184, 198.12.66.190, 37.120.143.51, 198.12.66.190, 45.95.119.9, 5.188.48.58, 94.103.95.137")
{
    header("Location: www.google.com");
}

it will be redirected to www.google.com , or the URL that you want.

Regards,
Mirko

Please Log in or Create an account to join the conversation.

Last edit: Post by Mirec.

Blocking IPs 4 months 3 weeks ago #261258

  • Topic Author
  • FotoHijinx
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 8
  • Thanks: 0
Thanks for that.

If there is more than one address do you just separate with a comma?

Please Log in or Create an account to join the conversation.

Blocking IPs 4 months 3 weeks ago #261259

  • Topic Author
  • FotoHijinx
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 8
  • Thanks: 0
Ooops, only read the first part in the email.

Just ignore ;)

Please Log in or Create an account to join the conversation.

Blocking IPs 4 months 3 weeks ago #261260

  • Mirec's Avatar
  • Mirec
  • Away
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 1373
  • Karma: 2
  • Thanks: 75
Hi,

okay! :)

If you need more help, feel free to ask!
Regards,
Mirko
The following user(s) said Thank You: FotoHijinx

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.048 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!