How can I disable certain pages in a dynamic site

manhal

Newbie
Joined
Apr 15, 2009
Messages
48
Reaction score
2
I have an auto-updated youtube api website where the site urls are always in the form

www.mydomain.com/video/yt.php?$TITLE

or

www.mydomain.com/video/$ID/$TITLE.html

where $ID is the video id and $TITLE is the video title.

Now I want to disable/ban any page that the $TITLE contains a certain word (e.g. sex).

Any idea how can I do that?
 
You could use regular expressions to do that.

PHP:
<?php
if(eregi('badword', $your_title)) {
 // found bad word and now do something
}
?>
 
http://www.blackhatworld.com/blackhat-seo/members/11844-hollinger.html
i will try this then.
Thank you http://www.blackhatworld.com/members/11844-hollinger.html
 
Back
Top