Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...4.5.2 Request Filters Not Working4.5.2 Request Filters Not Working
Previous
 
Next
New Post
5/30/2007 1:56 PM
 

I have an installation of 4.5.2 that is an upgrade from a previous version (4.5.1, and 4.4.1)  I am logged in a host and have been trying to make the "Request Filter Settings" work and have had no success.

I have checked the box next to "Enable Request Filters" and I have added the following rule

Server Variable: REMOTE_ADDR
Operation: Equals
Match Value: 127.0.0.1
Action: Redirect
Location: http://www.google.com

I am trying to block access from the local machine to the installation, I have validated that if I check the Request object the proper IP of 127.0.0.1 is provided, yet the filter does not do anything.  I have tried restarting the application after saving and everything, but nothing has worked.

I also tried using the RegEx operation and the match value of 127\.0\.0\.1 and that did not match either.

Am I missing something basic here?


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
5/30/2007 4:56 PM
 

Yes

I found during testing that the REMOTE_ADDR address that was reported was not the loopback address as expected.  I don't know if this is the result of running on Vista with IPV6, by on my local machine the REMOTE_ADDR came through as "::1"  Clearly not what I expected.

I have put together a quick and dirty module that should help determine the values to filter on.  I'll post a link once I have it uploaded.


Joe Brinkman
DNN Corp.
 
New Post
5/30/2007 5:07 PM
 

Interesting.  i was testing this today on my machine here at work (WIN XP Pro).  I have no clue what it is providing for a value.  Now, to just test something out, I decided that since "Equals" didn't work, that if I did a "NotEquals" filter that it would redirect me.  Well that didn't work either.....

 


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
5/30/2007 5:24 PM
 

Mitchel,

  I have uploaded a quick and dirty module that should help in troubleshooting these server variables.  Download and install the module to see a list of all server variables and their values for a given browser session.

NOTE:  This is just something I threw together in a couple minutes and is not intended to be an officially supported project.


Joe Brinkman
DNN Corp.
 
New Post
5/30/2007 5:44 PM
 

Joe,

Thanks for this, I would have whipped something up, but I still only have VS 2003 here at work.

Now, this is where it gets a bit interesting.

I have validated that the REMOTE_ADDR server variable is returning a value of 127.0.0.1

I have the rule set to "Redirect" to google.com for requests where REMOTE_ADDR EQUALS 127.0.0.1

After saving that rule I closed my browser and then re-opened it and tried to go to the site, I was able to get to it without any difficulty.

So then I thought, well if it isn't matching on Equals, if I do "NotEqual" it should do the redirect, so I changed the setting and then repeated the process of logging off and restarting IE and let again I was able to get to the site.

I also tried RegEx matches and other items, but it never worked :(

 


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...4.5.2 Request Filters Not Working4.5.2 Request Filters Not Working


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out