Click here to Skip to main content
15,909,332 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Printer is not Detecting Pin
Expert Coming16-Dec-08 17:19
Expert Coming16-Dec-08 17:19 
QuestionGridview pagging Pin
Hemant Thaker14-Dec-08 23:51
Hemant Thaker14-Dec-08 23:51 
AnswerRe: Gridview pagging Pin
Paddy Boyd15-Dec-08 2:35
Paddy Boyd15-Dec-08 2:35 
QuestionIn a loop Pin
mhh1214-Dec-08 12:37
mhh1214-Dec-08 12:37 
AnswerRe: In a loop Pin
Paddy Boyd15-Dec-08 2:37
Paddy Boyd15-Dec-08 2:37 
GeneralRe: In a loop Pin
mhh1217-Dec-08 8:40
mhh1217-Dec-08 8:40 
GeneralRe: In a loop Pin
Paddy Boyd17-Dec-08 22:07
Paddy Boyd17-Dec-08 22:07 
GeneralRe: In a loop Pin
mhh1218-Dec-08 13:29
mhh1218-Dec-08 13:29 
QuestionParser Error Message: Recursive fallback not allowed for character \u003F. [modified] Pin
Aman Bhullar13-Dec-08 21:48
Aman Bhullar13-Dec-08 21:48 
AnswerRe: Parser Error Message: Recursive fallback not allowed for character \u003F. Pin
Ellen Dhawan26-Jan-09 1:04
Ellen Dhawan26-Jan-09 1:04 
GeneralRe: Parser Error Message: Recursive fallback not allowed for character \u003F. Pin
Aman Bhullar27-Jan-09 5:06
Aman Bhullar27-Jan-09 5:06 
GeneralRe: Parser Error Message: Recursive fallback not allowed for character \u003F. Pin
Ellen Dhawan27-Jan-09 9:35
Ellen Dhawan27-Jan-09 9:35 
Questionproblem to display Chinese in Apache-Tomcat server Pin
alexyxj13-Dec-08 7:18
alexyxj13-Dec-08 7:18 
AnswerRe: problem to display Chinese in Apache-Tomcat server Pin
Paddy Boyd15-Dec-08 2:38
Paddy Boyd15-Dec-08 2:38 
QuestionExport data to outlook calander Pin
nainakarri12-Dec-08 17:41
nainakarri12-Dec-08 17:41 
AnswerRe: Export data to outlook calander Pin
Abhijit Jana12-Dec-08 22:53
professionalAbhijit Jana12-Dec-08 22:53 
GeneralRe: Export data to outlook calander Pin
nainakarri12-Dec-08 23:58
nainakarri12-Dec-08 23:58 
GeneralRe: Export data to outlook calander Pin
Perspx12-Dec-08 23:31
Perspx12-Dec-08 23:31 
GeneralRe: Export data to outlook calander Pin
nainakarri13-Dec-08 0:06
nainakarri13-Dec-08 0:06 
AnswerRe: Export data to outlook calander Pin
Sandeep Mewara4-Jan-09 22:47
mveSandeep Mewara4-Jan-09 22:47 
QuestionUrlRewriting conflicts with Lightbox Pin
razing12-Dec-08 5:41
razing12-Dec-08 5:41 
Question.htaccess bot protection rule Pin
GregStevens12-Dec-08 3:22
GregStevens12-Dec-08 3:22 
I've been trying to create a group of rules in .htaccess that will deny bots access to specific groups of pages in my site. Specifically, my site is a Wiki (running MediaWiki), and I would like to prevent bots from accessing any pages in the "User", "Talk" or "Special" namespaces, while allowing them to spider other pages on the site.

Below is my attempt... but it's not working. The basic approach I'm trying to use is this:
1. set an environment variable that identifies if the REQUEST_URI's that I want to exclude
2. set an environment variable that detects if the user agent is a bot
3. If both of the above environment variables are set, deny the page.

Can anyone give me a tip as to why the code below is NOT doing what I describe above?

RewriteEngine on

### Identify non-bot pages with environment variable
RewriteCond %{REQUEST_URI} ^/reference/index.php?title=User:.* [OR]
RewriteCond %{REQUEST_URI} ^/reference/index.php?title=Talk:.* [OR]
RewriteCond %{REQUEST_URI} ^/reference/index.php?title=Special:.*
RewriteRule ^.* - [E=PAGE_NO_BOT:1]

### Identify bot user agents with environment variable
RewriteCond %{HTTP_USER_AGENT} ^.*Googlebot.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*robot.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Slurp.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Scooter.*
RewriteRule ^.* - [E=CLIENT_IS_BOT:1]

### If it is a bot AND it is looking at a non-bot page, deny
RewriteCond %{ENV:PAGE_NO_BOT} ^1$
RewriteCond %{ENV:CLIENT_IS_BOT} ^1$
RewriteRule ^.* - [F,L]

QuestionHow to insert data in GridView and then into database [modified] Pin
Member 400664811-Dec-08 18:34
Member 400664811-Dec-08 18:34 
AnswerRe: How to insert data in GridView and then into database Pin
SeMartens11-Dec-08 23:23
SeMartens11-Dec-08 23:23 
GeneralRe: How to insert data in GridView and then into database Pin
Member 400664811-Dec-08 23:41
Member 400664811-Dec-08 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.