Dynadot โ€” .com Registration $8.99

WTB: Coder to Design Custom Redirects

Spaceship Spaceship
Watch

emgage

Established Member
Impact
48
Hello, i am having some issues with one of my sites.

I have URLS in the format http://re-downloads.com/?s=youtube&x=0&y=0

I would like to disable such selected URLS from being accessed. However, when doing so by cpanel or htaccess (i used several redirect formats) it either doesnt work, gives an error, or works but all links which begin with http://re-downloads.com/?s= are redirected as well, losing the search functionality of my site.

Willing to pay $10 for a syntax that work to redirect Selected URLs beginning with http://re-downloads.com/?s= to homepage without losing search function for other terms.

Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
Was browsing through here and decided to make this script, it doesn't look like you need it anymore as that domain is parked, but here it is for anyone else who may come across this thread and need it:

PHP:
<?php
/* Term banning script */
$redirect_page="index.php"; //Where you want users redirected to.
$banned_terms = array("youtube","test"); //Terms to redirect to page, be sure these terms are in lower case.
$ban_terms_containing = true; // Ban anything that contains the terms is true, only ban an exact match = false
$search_string = strtolower(@$_GET["s"]); //Search variable
$banned_term = false; //Tells us at the end if the term is banned. If banned, it'll return true.

if(in_array($search_string,$banned_terms)){
	$banned_term = true;
}else{
	if($ban_terms_containing == true){
		foreach($banned_terms as $bT){
			if(strstr($search_string,$bT) != NULL){
				$banned_term = true;
			}
		}
		unset($bT);
	}
}

if($banned_term == true){
	header("Location: index.php");
	die("Redirecting...");
}
/* Term banning script */
?>
If the term is not banned, then the user will see everything from this line and below. Search term: <b><?php echo $search_string; ?></b>
 
0
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back