Plugin Directory

Changeset 3283084


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

updated

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

Legend:

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

    r3283082 r3283084  
    11<?php
    22/*
    3 Plugin Name: SpamShieldX
    4 Plugin URI: http://azarsys.com/
    5 Description: A plugin to block iframe embedding and prevent spam.
     3Plugin Name: Automatic break iframes
     4Plugin URI: http://alirezanejati.ir/
     5Description: Automatic break iframes ban the iranian spam rss reader sites.
    66Author: Alireza Nejati
    7 Version: 1.2
    8 Tags: iframe, block iframe, anti spam, iframe blocker, spam protection, wordpress
    9 Author URI: https://azarsys.com/
     7Version: 1.1
     8Tags: frame, framebreak, iframes, break iframes, iframecatcher, wordpress
     9Author URI: http://alirezanejati.ir/
    1010License: GPL
    1111*/
    1212
    1313
    14 if (!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     }
     14
     15if(!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    }
    1926}
    20 add_action('wp_head', 'spamshieldx_block_iframe');
    21 
    22 
    23 require_once plugin_dir_path(__FILE__) . 'includes/blocked-requests.php';
    24 require_once plugin_dir_path(__FILE__) . 'includes/ip-blocking.php';
    25 require_once plugin_dir_path(__FILE__) . 'includes/settings.php';
    26 
    27 
    28 add_action('admin_menu', 'spamshieldx_menu');
    29 function spamshieldx_menu() {
    30     add_options_page('SpamShieldX Options', 'SpamShieldX', 'manage_options', 'spamshieldx-options', 'spamshieldx_options_page');
     27add_action('wp_head', 'break_iframes');
     28/** Start */
     29add_action( 'admin_menu', 'break_iframes_menu' );
     30function break_iframes_menu() {
     31    add_options_page( 'break iframes Options', 'break iframes', 'manage_options', 'my-unique-identifier', 'break_iframes_options' );
    3132}
    32 
    33 function 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 
    47 echo '<div style="margin-top: 20px; text-align:center;">';
    48 echo '<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>';
    49 echo '</div>';
    50 
    51 echo '<div style="background-color: #f7f7f7; padding: 15px; border-radius: 5px; margin-top: 20px; text-align:center;">';
    52 echo '<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>';
    53 echo '<p style="margin-top: 20px;">For more powerful tools and services, visit <a href="https://azarsys.com/" target="_blank">Azarsys</a></p>';
    54 echo '</div>';
    55 
    56 
    57 
     33function 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>';
    5840}
     41?>
  • automatic-break-iframes/tags/1.1/readme.txt

    r3283082 r3283084  
    1 === SpamShieldX ===
     1=== Automatic break iframes ===
    22Contributors: Alireza Nejati
    3 Tags: iframe blocker, spam protection, anti spam, website security, WordPress firewall
    4 Requires at least: 5.0
     3Donate link: https://azarsys.com/mikrotik-vps/
     4Tags: break iframes, ban spam site, iframecatcher, anti-coppy
     5Requires at least: 3.6
     6Stable tag: 1.1
    57Tested up to: 6.8
    6 Stable tag: 1.2
    78License: GPLv2 or later
    89License URI: http://www.gnu.org/licenses/gpl-2.0.html
    9 Plugin URI: https://azarsys.com/
    10 Author URI: https://azarsys.com/
     10
     11Automatic break iframes ban the iranian spam rss reader sites.
    1112
    1213== Description ==
    1314
    14 
    15 SpamShieldX 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 
    17 Whether 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.
     15Automatic break iframes ban the iranian spam site using javascript.
     16and this plugin ban the spam rss reader sites.
    3817
    3918== Installation ==
    4019
    41 1. Upload the **SpamShieldX** folder to the `/wp-content/plugins/` directory.
    42 2. Activate the plugin through the 'Plugins' menu in WordPress.
    43 3. Configure the plugin settings under **Settings > SpamShieldX**.
     201. Upload 'Automatic break iframes' to the '/wp-content/plugins/' directory
     212. Activate the plugin through the 'Plugins' menu in WordPress
     223. Or you can install the plugin in: "Plugins ==> Add ==> enter the name of plugin (Automatic break iframes) in search box and press Enter
     234. Install plugin, activate it and enjoy of plugin
    4424
    45 == Frequently Asked Questions ==
     251.Automatic break iframes
     26== Changelog ==
    4627
    47 = What does SpamShieldX do? =
    48 SpamShieldX 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.
     28= 1.0 =
     29* Start Plugin
    4930
    50 = How do I configure SpamShieldX? =
    51 Go to **Settings > SpamShieldX** in your WordPress dashboard, where you can configure settings to block iframe embedding and filter spam sources.
    52 
    53 == Screenshots ==
    54 
    55 1. Screenshot 1 - Settings page of SpamShieldX.
    56 2. Screenshot 2 - Example of a blocked iframe.
     31= 1.1 =
     32* Add manage options and page
Note: See TracChangeset for help on using the changeset viewer.