Plugin Directory

Changeset 3283082


Ignore:
Timestamp:
04/28/2025 06:37:06 AM (10 months ago)
Author:
Alireza Nejati
Message:

updated

Location:
automatic-break-iframes/tags/1.1
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • automatic-break-iframes/tags/1.1/Automatic break iframes.php

    r3282639 r3283082  
    11<?php
    22/*
    3 Plugin Name: Automatic break iframes
    4 Plugin URI: http://alirezanejati.ir/
    5 Description: Automatic break iframes ban the iranian spam rss reader sites.
     3Plugin Name: SpamShieldX
     4Plugin URI: http://azarsys.com/
     5Description: A plugin to block iframe embedding and prevent spam.
    66Author: Alireza Nejati
    7 Version: 1.1
    8 Tags: frame, framebreak, iframes, break iframes, iframecatcher, wordpress
    9 Author URI: http://alirezanejati.ir/
     7Version: 1.2
     8Tags: iframe, block iframe, anti spam, iframe blocker, spam protection, wordpress
     9Author URI: https://azarsys.com/
    1010License: GPL
    1111*/
    1212
    1313
     14if (!function_exists('spamshieldx_block_iframe')) {
     15    function spamshieldx_block_iframe() {
     16        $script = '<script type="text/javascript">' . "\n" . 'if (self !== top) {' . "\n\t" . 'top.location.replace(self.location.href);' . "\n" . '}' . "\n" . '</script>' . "\n";
     17        echo $script;
     18    }
     19}
     20add_action('wp_head', 'spamshieldx_block_iframe');
    1421
    15 if(!function_exists('break_iframes')) {
    16    
    17     function break_iframes() {
    18         $var_sScript .= '<script type="text/javascript">' . "\n" . 'if (self != top) {' . "\n\t" . 'top.location.replace(self.location.href);' . "\n" . '}' . "\n" . '</script>' . "\n";
    19         $var_sScript = apply_filters('break_iframes', $var_sScript);
    20         echo $var_sScript;
    21         echo "\n<!--";
    22         echo "\nif (parent.frames.length > 0) { parent.location.href = location.href; }";
    23         echo "\n-->";
    24         return;
    25     }
     22
     23require_once plugin_dir_path(__FILE__) . 'includes/blocked-requests.php';
     24require_once plugin_dir_path(__FILE__) . 'includes/ip-blocking.php';
     25require_once plugin_dir_path(__FILE__) . 'includes/settings.php';
     26
     27
     28add_action('admin_menu', 'spamshieldx_menu');
     29function spamshieldx_menu() {
     30    add_options_page('SpamShieldX Options', 'SpamShieldX', 'manage_options', 'spamshieldx-options', 'spamshieldx_options_page');
    2631}
    27 add_action('wp_head', 'break_iframes');
    28 /** Start */
    29 add_action( 'admin_menu', 'break_iframes_menu' );
    30 function break_iframes_menu() {
    31     add_options_page( 'break iframes Options', 'break iframes', 'manage_options', 'my-unique-identifier', 'break_iframes_options' );
     32
     33function spamshieldx_options_page() {
     34    if (!current_user_can('manage_options')) {
     35        wp_die(__('You do not have sufficient permissions to access this page.'));
     36    }
     37
     38    echo '<div class="wrap">';
     39    echo '<h1>SpamShieldX Settings</h1>';
     40    echo '<form method="post" action="options.php">';
     41    settings_fields('spamshieldx_options_group');
     42    do_settings_sections('spamshieldx-options');
     43    echo '<input type="submit" value="Save Settings" class="button-primary" />';
     44    echo '</form>';
     45
     46
     47echo '<div style="margin-top: 20px; text-align:center;">';
     48echo '<p>Powered by <a href="https://azarsys.com/" target="_blank"><img src="https://azarsys.com/wp-content/uploads/2023/08/logo-1.svg" alt="Azarsys Logo" style="max-width: 150px;"></a></p>';
     49echo '</div>';
     50
     51echo '<div style="background-color: #f7f7f7; padding: 15px; border-radius: 5px; margin-top: 20px; text-align:center;">';
     52echo '<h3>Exclusive Offer: Get 10% off on Azarsys Mikrotik VPS! <a href="https://azarsys.com/mikrotik-vps/" target="_blank" rel="follow">Claim your 10% off now</a> and boost your network performance.</h3>';
     53echo '<p style="margin-top: 20px;">For more powerful tools and services, visit <a href="https://azarsys.com/" target="_blank">Azarsys</a></p>';
     54echo '</div>';
     55
     56
     57
    3258}
    33 function break_iframes_options() {
    34     if ( !current_user_can( 'manage_options' ) )  {
    35         wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
    36     }
    37     echo '<div class="wrap">';
    38     echo '<p>Upgrading ...</p>';
    39     echo '</div>';
    40 }
    41 ?>
  • automatic-break-iframes/tags/1.1/readme.txt

    r3282661 r3283082  
    1 === Automatic break iframes ===
     1=== SpamShieldX ===
    22Contributors: Alireza Nejati
    3 Donate link: https://azarsys.com/mikrotik-vps/
    4 Tags: break iframes, ban spam site, iframecatcher, anti-coppy
    5 Requires at least: 3.6
    6 Stable tag: 1.1
     3Tags: iframe blocker, spam protection, anti spam, website security, WordPress firewall
     4Requires at least: 5.0
    75Tested up to: 6.8
     6Stable tag: 1.2
    87License: GPLv2 or later
    98License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 
    11 Automatic break iframes ban the iranian spam rss reader sites.
     9Plugin URI: https://azarsys.com/
     10Author URI: https://azarsys.com/
    1211
    1312== Description ==
    1413
    15 Automatic break iframes ban the iranian spam site using javascript.
    16 and this plugin ban the spam rss reader sites.
     14
     15SpamShieldX is the ultimate solution for protecting your WordPress website from spam and iframe abuse. Our plugin blocks malicious iframes and prevents unwanted spam sources, keeping your site secure and optimized.
     16
     17Whether you're a blogger, website owner, or developer, SpamShieldX is the perfect tool to enhance your site’s security and performance. Our plugin is lightweight, easy to configure, and seamlessly integrates into your WordPress site.
     18
     19== Features ==
     20- Block iframe abuse
     21- Prevent spam from harmful sources
     22- Protect your content and improve security
     23- Easy to use and setup
     24- Regular updates for maximum security
     25
     26
     27== Changelog ==
     28
     29= 1.2 =
     30* Changed the plugin file name from 'Automatic break iframes.php' to 'spamshieldx.php'.
     31* Added enhanced spam blocking features for better security.
     32* Introduced Mikrotik VPS promotion and integration with Azarsys services.
     33* Improved compatibility with the latest WordPress versions.
     34
     35= 1.1 =
     36* Fixed bug where iframe blocking wasn't working on certain pages.
     37* Added user-friendly settings page.
    1738
    1839== Installation ==
    1940
    20 1. Upload 'Automatic break iframes' to the '/wp-content/plugins/' directory
    21 2. Activate the plugin through the 'Plugins' menu in WordPress
    22 3. Or you can install the plugin in: "Plugins ==> Add ==> enter the name of plugin (Automatic break iframes) in search box and press Enter
    23 4. Install plugin, activate it and enjoy of plugin
     411. Upload the **SpamShieldX** folder to the `/wp-content/plugins/` directory.
     422. Activate the plugin through the 'Plugins' menu in WordPress.
     433. Configure the plugin settings under **Settings > SpamShieldX**.
    2444
    25 1.Automatic break iframes
    26 == Changelog ==
     45== Frequently Asked Questions ==
    2746
    28 = 1.0 =
    29 * Start Plugin
     47= What does SpamShieldX do? =
     48SpamShieldX blocks iframe embedding and helps prevent spam on your WordPress website. It also offers an easy-to-use configuration page for managing spam filters and iframe blocking settings.
    3049
    31 = 1.1 =
    32 * Add manage options and page
     50= How do I configure SpamShieldX? =
     51Go to **Settings > SpamShieldX** in your WordPress dashboard, where you can configure settings to block iframe embedding and filter spam sources.
     52
     53== Screenshots ==
     54
     551. Screenshot 1 - Settings page of SpamShieldX.
     562. Screenshot 2 - Example of a blocked iframe.
Note: See TracChangeset for help on using the changeset viewer.