Security :: Blocking IP Addresses For Certain Countries

Jun 9, 2010

I have a client who wants me to block his site from certain countries. Each month I add all the new IP address ranges for these countries into a sql database. If the user has a blocked IP address, the site directs them to a phoney 504 error page. This way it doesn't appear that the site is being blocked, but rather is just having difficulites. Thats the way we want it.

It works fine however, there are some users (5%) who get a 500 error. No rhyme or reason. It works across all browsers and operating systems. I have no way of finding out why from my hosting service. I can't dupliate it. I have the following code that runs at Page_Init

[Code]....

View 10 Replies


Similar Messages:

Security :: Blocking Access To Files From URL

Jun 15, 2010

I have built an online CMS that is forms authenticated. The CMS allows administrators to upload files to the website. These files are stored outside of the Forms Authenticated section of the site so that they can be accessed from another site I have built. This other site is also forms authenticated, so users must log in and then they can access the files on the CMS site. site1.com: CMS for administrators only. Site stores all the files. site2.com: Access site.

My second website (The access site), is basically an empty shell that is filled with all of its content through the CMS using an SQL database and then displayed on the page. This works fine as only authenticated users have access to the interface used to view and download the files. My problem was, even though there is no public interface to find the files, someone could surely type [URL] and the video would be available to them. I dont really know what to do here, is there any way that people could be blocked from retrieving the files like this?

View 1 Replies

Security :: Blocking IP Address Using HTTPModule?

Nov 19, 2010

I want to increase the security of my website, does creating http module that block certain ip address will increase security?

Since IP Address can be manipulated if I'm not mistaken, I'm not sure that creating HTTP Module will help.

View 1 Replies

How To Get A List Of Countries And States

May 3, 2010

i want a list of all countries and states for free interms of xml,html,word,doc,notepad, .sql format..

View 8 Replies

How To Fill Countries In A World Map

Feb 9, 2010

My client has customers in 100 countries in which a customer can have access to more than a country. So, to show visual appearance to the customer, our client want to show world map and fill each country with a different color where the customer has access to.

Is there anyway to do this in ASP.NET?

If not ASP.NET, Is their any third party which does this stuff.

View 1 Replies

Localization :: Get Users From Other Countries?

Dec 7, 2010

I have a website that is written in english. I am starting to get users from other countries. They speak english so it is not a problem as yet. But what is involved in adding multi language features to a site? Do you need to actually do the translations? For example, I have users from Slovenia which - I think uses some sort of cryllic alphabet. What is necessary to do this?

View 6 Replies

How To Display All Countries Date And Time In C#

May 6, 2010

how to display the All countries date and time in C# I have one dropdown list and one label and one submit button in DropDown list i have add all countries list like GMT + 05:30 Chennai, Kolkata, Mumbai, New Delhiwhen i select the particular list and press submit button to display.

View 3 Replies

List All Countries In Dropdownlist Where To Get That Web Service?

Feb 9, 2010

I want to list all the countries in my dropdown list. where can i get all the names? from service right? How to do this?

View 4 Replies

Mark Countries In Map (Google Or Bing)?

Oct 20, 2010

is it possible to use Bing Maps or Google Maps (or any other) and mark countries on a world map? I have some countries in SQL DB depending on the logged in user, e.g. France, Mexico, Australia, Japan. These countries should be mark on a world map. Is this possible?

View 2 Replies

JQuery :: Dropdown With Countries Along With Their Flags?

Sep 22, 2010

need Country dropdown with Flags using JQuery..I am new to Jquery.

View 16 Replies

Web Forms :: Site Running With Different Countries Restricted

Apr 22, 2010

I am working on a site where I need to set different countries get restricted. The selected countries don't able to download the contet of that site? How do I do this.

View 3 Replies

SQL Server :: Script For The Countries And States Table?

Jul 22, 2010

where can i get the script for the countries and there corresponding states of all over the world.

As by googling I could Only find the states of Uk and USA but I want the states of all over the world and there corresponding countries.

View 2 Replies

C# - Blocking Users By IP Address?

Mar 23, 2011

I need a way to block users from their IP if necessary. What's the best way to approach this? Can I use Request.ServerVariables["REMOTE_ADDR"] and store the ip address as a string in the DB?

View 3 Replies

MVC :: Move Selected Countries From One List Box To Another Listbox In MVC Framework?

Apr 21, 2010

I have 2 listboxes. 1 listbox displays all countries. then I have added 2 buttons, Add and Remove, to add and remove the selected countries from first listbox to second listbox. how can I move selected countries from one list box to another listbox in MVC framework.I am using Linq.

View 4 Replies

Blocking Access To Application For A User

Dec 9, 2010

I have an ASP.NET MVC application that use the default ASP.NET Membership Provider. My customer asked to implement a feature that prevent users to log in (for example for users that resign and leave the company). I cannot use the IsApproved flag of the Membership table because that field is used to confirm user egistration. Is there any built in functionality for doing this? What are your experiences in scenarios like this?

View 1 Replies

Validators Blocking Navigation In Ajax?

Mar 3, 2010

I am encountering issues in the navigation defined in a master page which are being blocked by validators pages that inherit from the master. How can I disable these validators so that they do not prevent my button actions in the master page?I am using AJAX controls in child pages.

View 2 Replies

C# - Multiple Calls To The Same Web Service Blocking?

Nov 18, 2010

We have a page that makes a request to a 3'rd party web service. When under heavy load this response time extends significantly, however the 3'rd party reports back that there times for processing remains constant. There timings show that from the time they receive a request to the time they send it back is always around 1.5-2.0 seconds. Now we are experiencing wait times of over 20 seconds. My understanding of ASP.NET is that each request will run on a IIS thread pool thread and make the request to the 3'rd party service return and process. So I don't really understand what could be blocking on our end. Is there something I am missing?? Is there a threshold limit beyond IIS that is blocking?

If I am missing something a physical book recommendation that covers this subject would also be a very welcome addition to any answer.

View 2 Replies

AJAX :: Thread Blocking In ScriptObjectBuilder?

Jul 23, 2010

My application is showing lots of thread wait events in the GetScriptReferencesInternal method of ScriptObjectBuilder. I am running a load test with 150 concurrent sessions and in 10 minutes I see 1000 thread block events. Each event stalls the execution of the thread for an average of 6 seconds.

View 2 Replies

Blocking - TransmitFile Causes Site To Block?

Jun 29, 2010

Whenever I use TransmitFile to send a file, the sirte becomes blocked to the user until the file completes. IOW, the user cannot navigate the site.If the user cancels the transfer, it still blocks until the site either times out OR finishes sending the data. I can't tell which, but I know if for example I cancel a 30MB file immediately after starting the download, it takes longer to recover than a 10 MB file.Here is the relevant code:

Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", contdisp);
Response.AddHeader("Content-Length", new FileInfo(fullfilename).Length.ToString());
Response.TransmitFile(fullfilename);
Response.Flush();

View 1 Replies

C# - I.NET HttpPostedFile.SaveAs A Blocking Call?

Mar 1, 2011

I was wondering whether HttpPostedFile.SaveAs function in ASP.NET C# is a blocking call.

View 1 Replies

MVC :: Global Navigation Tree And Partial Views - Doesn't Contain Countries

Sep 21, 2010

If you have a global navigation tree, Countries --> States --> Cities for example, how do you correctly implement this in MVC2? In my example, the view model for States does not contain Countries and the tree would break as it needs the Countries list to build the tree. It sounds like this should be easy, but it doesn't sound right to include the entire model for a single State or City view.

View 3 Replies

Retrieving Updated List Of Countries States And Cities In A Website?

Mar 4, 2010

I'm trying to create a User Registration page in ASP.NET and wondering what is the best way to get the list of up-to-date Countries and Cities? Are there any Web Services on the web that I can use to retrieve such information? If not, what are the options?

View 2 Replies

Calling WebMethods / WebService Using Jquery Is Blocking?

Apr 6, 2010

I'm generating a file on the server which takes some time. For this, I have a hidden iframe which I then set the .src attribute to an aspx file i.e iframe.src = "/downloadFile.aspx"While this is taking place, I'd like to have a call to a web service return the progress. To do this, I thought I could use window.setInterval or window.setTimeout but Javascript seems to be blocked as soon as I set the iframe src attribute.Does anyone know how to get around this or perhaps try a different approach?I have also tried handlers, but the request never gets to the server so I'm assuming is a browser/javascript issue.

//Function that gets the file
function GetFile() {
setTimeout(GetProgress, 1000);
var iframe = document.createElement("iframe");

[code]...

View 2 Replies

Web Forms :: Blocking Textbox Form Any Action?

Jul 1, 2010

i m using two grid in both gird i have a text box control on which i apply some java script funtion. my broblem is that when i press a tab key then its block my textbox. it means i m not able to press any key in that box even mouse click is not working.

my both grid in a same update panal but when i set focus out of that update panal and back to my text box they are start working properly.

i m applying a Web method on that text box also which call by javascript.3

View 2 Replies

Web Forms :: Blocking Autocomplate Textbox On Browsers?

Aug 1, 2010

I have a bookingwith credit card page in my application and users will enter their crdit card details inside the textboxes. but after they enter them and post it the browser cache the data and after that in the same textbox, it can be autocomplated.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved