dartho
08-31-2009, 10:00 PM
Make sure you check the NOTES section below!
This add-on allows you to specify domain names (or IP addresses) which you do not wish to accept links from. You have the choice to return a 404 message, redirect back to where they came (where they followed a link to your site from), display custom HTML, or redirect to another URL.
You could use this for a few different purposes. Say you suddenly get popular on slashdot or digg and your bandwidth is about to suffer - you can redirect all visitors that have clicked through on a link from said site to another URL, display them a "Too Busy" message, 404 them or just have them sent back to whence they came.
Say a dodgy site has links to your site, you could again 404, or display a "DO NOT WANT" message or just send them straight back to the referring page.
You can also just mess with people who have static IP addresses (partial addresses accepted).
Version Control
0.0.1 - Initial Release
0.0.2 - Fixed issue when having blank fields caused forum errors. Also made more lightweight (got rid of pregmatchs)
0.0.3 - Fixed another small bug
0.0.4 - OK - this time I fixed the bug :S
NOTES
WARNING
Do not test with your own IP address, or domain name! You will lock your self out of your forums and will have to disable hooks to reconfigure the addon.
Do not include leading HTTP:// or directory names - domain names (or partial) only!eg. use: evil-website.com , NOT http://evil-website.com and NOT http://evil-website.com/forum
To disable the hook/plugin system, edit your includes/config.php file and place the following code on the second line (immediately below <?php) To re-enable hooks, undo the edit!
define('DISABLE_HOOKS', true);
This add-on allows you to specify domain names (or IP addresses) which you do not wish to accept links from. You have the choice to return a 404 message, redirect back to where they came (where they followed a link to your site from), display custom HTML, or redirect to another URL.
You could use this for a few different purposes. Say you suddenly get popular on slashdot or digg and your bandwidth is about to suffer - you can redirect all visitors that have clicked through on a link from said site to another URL, display them a "Too Busy" message, 404 them or just have them sent back to whence they came.
Say a dodgy site has links to your site, you could again 404, or display a "DO NOT WANT" message or just send them straight back to the referring page.
You can also just mess with people who have static IP addresses (partial addresses accepted).
Version Control
0.0.1 - Initial Release
0.0.2 - Fixed issue when having blank fields caused forum errors. Also made more lightweight (got rid of pregmatchs)
0.0.3 - Fixed another small bug
0.0.4 - OK - this time I fixed the bug :S
NOTES
WARNING
Do not test with your own IP address, or domain name! You will lock your self out of your forums and will have to disable hooks to reconfigure the addon.
Do not include leading HTTP:// or directory names - domain names (or partial) only!eg. use: evil-website.com , NOT http://evil-website.com and NOT http://evil-website.com/forum
To disable the hook/plugin system, edit your includes/config.php file and place the following code on the second line (immediately below <?php) To re-enable hooks, undo the edit!
define('DISABLE_HOOKS', true);