Click here to Skip to main content
15,887,822 members
Home / Discussions / Web Development
   

Web Development

 
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 
Questiontable within table Pin
Bharti Vermani11-Dec-08 17:31
Bharti Vermani11-Dec-08 17:31 
QuestionRe: table within table Pin
47_MasoN_4712-Dec-08 8:29
professional47_MasoN_4712-Dec-08 8:29 
AnswerRe: table within table Pin
Bharti Vermani14-Dec-08 17:23
Bharti Vermani14-Dec-08 17:23 
QuestionJavaScript Question about cursor position within TextBox Pin
Leo Smith11-Dec-08 10:54
Leo Smith11-Dec-08 10:54 
QuestionThe order of meta tages, stylesheets and javscript files Pin
Brendan Vogt11-Dec-08 6:55
Brendan Vogt11-Dec-08 6:55 
AnswerRe: The order of meta tages, stylesheets and javscript files Pin
Aman Bhullar13-Dec-08 22:31
Aman Bhullar13-Dec-08 22:31 
AnswerRe: The order of meta tages, stylesheets and javscript files Pin
Roger Wright16-Dec-08 18:27
professionalRoger Wright16-Dec-08 18:27 
QuestionHow to build IE Explorer addon to be embedded in an aspx page? Pin
mohamadabdou10-Dec-08 23:26
mohamadabdou10-Dec-08 23:26 
AnswerRe: How to build IE Explorer addon to be embedded in an aspx page? Pin
Christian Graus11-Dec-08 10:17
protectorChristian Graus11-Dec-08 10:17 
QuestionPlease help: Unable to automatically step into the server. Pin
khuzwayom10-Dec-08 22:04
khuzwayom10-Dec-08 22:04 
AnswerRe: Please help: Unable to automatically step into the server. Pin
Paddy Boyd11-Dec-08 1:55
Paddy Boyd11-Dec-08 1:55 
QuestionFirefox ignoring positioning parts of CSS Pin
47_MasoN_4710-Dec-08 10:28
professional47_MasoN_4710-Dec-08 10:28 
AnswerRe: Firefox ignoring positioning parts of CSS Pin
Guffa11-Dec-08 7:01
Guffa11-Dec-08 7:01 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
47_MasoN_4712-Dec-08 8:21
professional47_MasoN_4712-Dec-08 8:21 

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.