Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Add-ons

Block Bad Words + IP + Links + Redirects

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

Block Bad Words + IP + Links + Redirects - CodeCanyon Item for Sale


Ad: Bluehost hosting


  • No modification required
  • No coding knowledge required
  • No modification to SQL or Server Files
  • Block Bad Words + IP + Redirects + Links
  • Works with wordpress, joomla, phpfox or any other PHP site
  • Free support from author
  • Lifetime free updates

Also Check out Live Preview 2


Just Copy and paste this line in your index.php


and you are done with installation part

Block Bad Words

You can block all the bad words from your site on the fly. Example

Chage it to

Features Of Bad Word Blocker

  • Works on fly
  • New words can be added to the list
  • Change it to required term
  • Activate-Deactivate on demand

Block Bad Links

You can block all spam link(s) from site on the fly. Example

Change it to

Features Of Bad Link Blocker

  • Blocks spam links on the fly
  • Block a particular link or domain
  • Ban domain completely from your site
  • Can unban them later
  • Activate-Deactivate on demand

Block Bad IP

You can block bad IP address or bad visitor from your site and redirect them to some other site of your choice

Features of Bad IP Blocker

  • Support wildcard
  • Blocks IP range
  • Blocks Country
  • Unblock them later if you wish
  • Redirects them some other place
  • Activate-Deactivate on demand

Redirect Protector

If you site visitors are visiting some other domain by clicking on an external link, you can give them a prior notice, “Hey you are visiting external link, you want to continue at your own risk or return back to us”

Change It to

Give them a notice

Features of Redirect Protector

  • Auto detect external links
  • Blocks all external redirect
  • Give them a notice that they are visiting an external site
  • Redirect as per your choice
  • Can also whitelist domain names from redirect protection

Note:- This script will not work with external comment system like disqus,facebook etc

Compatible With

Vanilla Forums
Any PHP Based script
Dynamic Websites ( PHP )
Static Websites ( PHP )


Updated Version 2.0
  • Added functionality :- Remove bad text links ( Bad links not created in href environment )
  • Added functionality :- Detect space between domain while removing them (eg
  • Minor Bug Fix
  • Tip:- do not add http:// or www. while blocking a link or domain
  • Big thanks to Austraila for suggestions and helping. Authors profile Austraila

Also check out a awesome plugin

Minify HTML Inline CSS/JS On Fly

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


1 April 13

Last Update:
5 April 13

Files Included:

Software Version:
PHP 5.3, PHP 5.4


eCommerce, eCommerce, All Items, ban ip, block bad words, php, profanity filter, protect redirect, siteprotector