Changeset 3283082
- Timestamp:
- 04/28/2025 06:37:06 AM (10 months ago)
- Location:
- automatic-break-iframes/tags/1.1
- Files:
-
- 4 added
- 2 edited
-
Automatic break iframes.php (modified) (1 diff)
-
includes (added)
-
includes/blocked-requests.php (added)
-
includes/ip-blocking.php (added)
-
includes/settings.php (added)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
automatic-break-iframes/tags/1.1/Automatic break iframes.php
r3282639 r3283082 1 1 <?php 2 2 /* 3 Plugin Name: Automatic break iframes4 Plugin URI: http://a lirezanejati.ir/5 Description: A utomatic break iframes ban the iranian spam rss reader sites.3 Plugin Name: SpamShieldX 4 Plugin URI: http://azarsys.com/ 5 Description: A plugin to block iframe embedding and prevent spam. 6 6 Author: Alireza Nejati 7 Version: 1. 18 Tags: frame, framebreak, iframes, break iframes, iframecatcher, wordpress9 Author URI: http ://alirezanejati.ir/7 Version: 1.2 8 Tags: iframe, block iframe, anti spam, iframe blocker, spam protection, wordpress 9 Author URI: https://azarsys.com/ 10 10 License: GPL 11 11 */ 12 12 13 13 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 } 19 } 20 add_action('wp_head', 'spamshieldx_block_iframe'); 14 21 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 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'); 26 31 } 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 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 32 58 } 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 === 2 2 Contributors: 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 3 Tags: iframe blocker, spam protection, anti spam, website security, WordPress firewall 4 Requires at least: 5.0 7 5 Tested up to: 6.8 6 Stable tag: 1.2 8 7 License: GPLv2 or later 9 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 11 Aut omatic break iframes ban the iranian spam rss reader sites.9 Plugin URI: https://azarsys.com/ 10 Author URI: https://azarsys.com/ 12 11 13 12 == Description == 14 13 15 Automatic break iframes ban the iranian spam site using javascript. 16 and this plugin ban the spam rss reader sites. 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. 17 38 18 39 == Installation == 19 40 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 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**. 24 44 25 1.Automatic break iframes 26 == Changelog == 45 == Frequently Asked Questions == 27 46 28 = 1.0=29 * Start Plugin 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. 30 49 31 = 1.1 = 32 * Add manage options and page 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.
Note: See TracChangeset
for help on using the changeset viewer.