IDN Forums - Internationalized Domain Names  
Home | idntools | Advertise on idnforums | Premium Membership

Go Back   IDN Forums - Internationalized Domain Names > IDN Development > Help Wanted

Help Wanted Need to hire someone to develop international domains or need a consultant to help search for IDN domains. Post it here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19th April 2010, 12:07 AM
yanni's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 2,216
iTrader: (34)
Rep Power: 963
yanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished road
Send a message via AIM to yanni Send a message via Skype™ to yanni
Exclamation Apache mod rewrite help needed

I have a video search engine which pulls content form various external video sources and creates pages dynamically.

Is there a way to prevent certain keywords from being searched, in the .htacces file with mod rewrite and redirect requests to index page?
I tried a 301 redirect old file, but didn't work.

Any help or guidance appreciated.

TIA
Reply With Quote
  #2 (permalink)  
Old 19th April 2010, 12:43 AM
squirrel's Avatar
Senior Member
 
Join Date: Nov 2009
Posts: 2,660
iTrader: (11)
Rep Power: 6016
squirrel is a name known to all
squirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to all
Re: Apache mod rewrite help needed

Your script file that your search form is sending variables to using GET/POST, it could go through a wordlist. If the keyword is in the word list, the user gets redirected to a specific page, if not, the script fetches search results.

Your wordlist could be a separate file so you can update it whenever you want and just upload it on your server.

Is that what you're looking to do ?
Reply With Quote
  #3 (permalink)  
Old 19th April 2010, 01:23 AM
yanni's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 2,216
iTrader: (34)
Rep Power: 963
yanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished road
Send a message via AIM to yanni Send a message via Skype™ to yanni
Re: Apache mod rewrite help needed

Squirrel, thanks for the reply.

Yes there is a bad words list and I added the keywords I need excluded there, but it doesn't seem to work.

Since I am php-challenged does the following snipplet of code show the major bad words list on or off? I assume it's on. None of the banned words work on the site though. It pulls video unless there isn't any at the source.

----------------------------------------------

//start new
$i = 0;
while($i<count($major_badwords)) {
$banwords .= "-".$major_badwords[$i]."+";
$i++;

}

/// end new

----------------------------------------------------------------

That's why I wondered if this could work with htacces

Thanks again for your time.
Reply With Quote
  #4 (permalink)  
Old 19th April 2010, 01:42 AM
yanni's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 2,216
iTrader: (34)
Rep Power: 963
yanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished road
Send a message via AIM to yanni Send a message via Skype™ to yanni
Re: Apache mod rewrite help needed

OK, I figured it out on the videos part. Now I've got do figure it out to exclude the words from the rss feed [news].

Last edited by yanni; 19th April 2010 at 01:51 AM..
Reply With Quote
  #5 (permalink)  
Old 19th April 2010, 02:37 AM
jose's Avatar
Veteran
 
Join Date: Jan 2006
Posts: 8,404
iTrader: (48)
Rep Power: 4670
jose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nice
Re: Apache mod rewrite help needed

Yes, you can do it with htacces.

Check this example, which blocks based on keywords like Viagra:

http://www.askapache.com/htaccess/re...tml#menu0-el10

One of my favorite htacces ever.
__________________
I am now into iOS and Android app development. Want an app? I might help.
Reply With Quote
  #6 (permalink)  
Old 19th April 2010, 08:41 AM
yanni's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 2,216
iTrader: (34)
Rep Power: 963
yanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished roadyanni is on a distinguished road
Send a message via AIM to yanni Send a message via Skype™ to yanni
Re: Apache mod rewrite help needed

Thanks for the link Jose. Much appreciated.

Lots of learning for me to do, which is always welcome ;]
Reply With Quote
  #7 (permalink)  
Old 19th April 2010, 02:19 PM
squirrel's Avatar
Senior Member
 
Join Date: Nov 2009
Posts: 2,660
iTrader: (11)
Rep Power: 6016
squirrel is a name known to all
squirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to allsquirrel is a name known to all
Re: Apache mod rewrite help needed

Good luck Yanni.

If you still want to do it using php, there's plenty of "bad words filter" templates online. You can find one easily then use php.net to understand each functions used in the template.
Reply With Quote
  #8 (permalink)  
Old 19th April 2010, 11:26 PM
mdw's Avatar
mdw mdw is offline
Member
 
Join Date: Jul 2006
Location: upstairs
Posts: 836
iTrader: (24)
Rep Power: 384
mdw is an unknown quantity at this point
Re: Apache mod rewrite help needed

Quote:
Originally Posted by jose View Post
Yes, you can do it with htacces.

Check this example, which blocks based on keywords like Viagra:

http://www.askapache.com/htaccess/re...tml#menu0-el10

One of my favorite htacces ever.
UGGGHHHH!!!!!

Don't ever do this folks. You put this into an .htaccess file and it gets read and parsed on every request matching that directory! If you put this beast into the root dir you're doing this file IO on every request. At least for apache server.

If you really think you want to handle this filtering task at the server config level instead of in the application logic then it belongs in the server config file. That way it's read once, when the process starts up, and that's it.

This is akin to making your restaurant waiter put on very heavy shoes. In the best case he still may serve you your meal with little or no degradation of performance, but in the worst case the service will deteriorate noticeably.
Reply With Quote
  #9 (permalink)  
Old 20th April 2010, 12:47 AM
jose's Avatar
Veteran
 
Join Date: Jan 2006
Posts: 8,404
iTrader: (48)
Rep Power: 4670
jose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nicejose is just really nice
Re: Apache mod rewrite help needed

I have a site with a very heavy htacess and didn't notice any visible degradation of speed, but I might be wrong. Anyway askapache are the experts, not me.
__________________
I am now into iOS and Android app development. Want an app? I might help.
Reply With Quote
  #10 (permalink)  
Old 20th April 2010, 01:36 AM
mdw's Avatar
mdw mdw is offline
Member
 
Join Date: Jul 2006
Location: upstairs
Posts: 836
iTrader: (24)
Rep Power: 384
mdw is an unknown quantity at this point
Re: Apache mod rewrite help needed

Quote:
Originally Posted by jose View Post
I have a site with a very heavy htacess and didn't notice any visible degradation of speed, but I might be wrong. Anyway askapache are the experts, not me.
Well for a busy server it's a lot of extra overhead. But if it gets the kind of traffic that my Chinese domains get it's a moot point.

I'm considering a process where, on every HTTP request to a Chinese domain of mine, a carrier pigeon delivers a notification to me, I boot up a windows server [install some patches], and fire up IIS to serve that request and then shut it all down afterward. Hopefully I don't go thru all that every year.

Last edited by mdw; 20th April 2010 at 01:37 AM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:31 PM.

Site Sponsors
Your ad here
buy idns
domain name lawyer
buy t-shirt
מחיר הזהב

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright idnforums.com 2005

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54