Block specified IP address
Last Post 10/04/2012 9:02 AM by Joseph Craig. 1 Replies.
Author Messages
Sharon S
Posts:


--
10/03/2012 8:45 PM  
Hi all,
I'm a newbie in DNN

Is there anyway DNN can block specified IP addresses from accessing certain page on a website and prevent them from downloading documents from that page? If there's a way to do it, likely the user will be redirected to another page when trying to access that restricted page?

Thanks in advance for your help

Joseph Craig
DNN MVP
Posts:11667


--
10/04/2012 9:02 AM  
If you can do this by user and not by IP, you could just insert an HTML module on that page and set it to be seen only by a specific user. Then, in the module just add a javascript to redirect to another page. This would be the simplest approach, but I can't see how to make it work for an IP address.

For one site, I created a module that, when placed on a page, checks the Request object for the IP address, and redirects if the IP matches.

If you want to block certain IP addresses from the entire site: http://support.powerdnn.com/KB/a370...-site.aspx

Joe Craig, Patapsco Research Group
Complete DNN Support


---