TOPIC:

Mehrere IP-Adressen sperren 2 months 3 weeks ago #260759

  • Topic Author
  • JMLA_Userin
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 31
  • Thanks: 0
Hallo, wir bekommen viele, viele Spams über die Breezing Formulare herein.

Ich habe hier gelesen, dass man eine IP-Adresse sperren kann.

Hier der Code:

if($_SERVER == "197.220.169.131")
{
header("Location: www.crosstec.org ");
}


Aber wie kann ich mehrere IP-Adressen sperren?

Sag schon mal vielen Dank.
Ich sag schon mal vielen Dank und viele Grüße

I already say thank you very much and best regards

Hanne

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

Last edit: Post by JMLA_Userin.

Mehrere IP-Adressen sperren 2 months 3 weeks ago #260760

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 942
  • Karma: 2
  • Thanks: 50
Hi,

try like this :

if($_SERVER == "123.123.123.123", "123.123.123.123", "123.123.123.123" )
{
header("Location: www.crosstec.org ");
}

Regards,
Mirko

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

Last edit: Post by Mirec.

Mehrere IP-Adressen sperren 2 months 3 weeks ago #260761

  • Topic Author
  • JMLA_Userin
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 31
  • Thanks: 0
How can I test if it works?
Wie kann ich das testen ob es funktioniert?

Wenn ich das Formular aufrufen will kommt ein Umleitungsfehler.
When I try to call up the form I get a redirect error.

Das sind meine Eingaben:



if($_SERVER == "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 ");
}
}
Ich sag schon mal vielen Dank und viele Grüße

I already say thank you very much and best regards

Hanne
Attachments:

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

Last edit: Post by JMLA_Userin.

Mehrere IP-Adressen sperren 2 months 3 weeks ago #260762

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 942
  • Karma: 2
  • Thanks: 50
Hi,

Change the 123.123.123.123 address to the address you want to block. When this IP address will come to your form, 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.

Mehrere IP-Adressen sperren 2 months 3 weeks ago #260763

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 942
  • Karma: 2
  • Thanks: 50
HI,

try like this
if($_SERVER == "123.123.123.123", "123.123.123.123", "123.123.123.123" )
{
header("Location: www.crosstec.org ");
}
in your code, you have one curly brace
'}' excess, please remove it.

Regards,
Mirko

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

Last edit: Post by Mirec.

Mehrere IP-Adressen sperren 2 months 3 weeks ago #260764

  • Topic Author
  • JMLA_Userin
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 31
  • Thanks: 0
The redirect error still occurs.

if($_SERVER == "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 ");
}
Ich sag schon mal vielen Dank und viele Grüße

I already say thank you very much and best regards

Hanne

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.106 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!