473,466 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Block web page for specified IP

MZ
Hello!

Is it possible to block the web page for specified IP? I mean one IP.
I would like my page work fine for any other users (with different IP).

Is it possible?

Thank you
Marcin from Poland
Feb 3 '08 #1
5 1435
MZ wrote:
Hello!

Is it possible to block the web page for specified IP? I mean one IP.
I would like my page work fine for any other users (with different IP).

Is it possible?

Thank you
Marcin from Poland
Sure, and it's best done at the OS level by your firewall.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 3 '08 #2
MZ
U¿ytkownik "Jerry Stuckle" <js*******@attglobal.netnapisa³ w wiadomo¶ci
news:rZ******************************@comcast.com. ..
MZ wrote:
>Hello!

Is it possible to block the web page for specified IP? I mean one IP.
I would like my page work fine for any other users (with different IP).

Is it possible?

Thank you
Marcin from Poland

Sure, and it's best done at the OS level by your firewall.
But you mean firewall from the server where I have source files, don`t you?
But this server is not mine and I pay for access and use in the server,
that`s why I cannot do this on the server.

That`s why I would like to do it using a code.
Can you tell me how to do it?

Thank you in advance
Marcin

Feb 3 '08 #3
MZ wrote:
But you mean firewall from the server where I have source files, don`t
you? But this server is not mine and I pay for access and use in the
server, that`s why I cannot do this on the server.

That`s why I would like to do it using a code.
Can you tell me how to do it?
RTFM on the $_SERVER['REMOTE_ADDR'] predefined variable.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

You will be the last person to buy a Chrysler.

Feb 3 '08 #4
MZ
RTFM on the $_SERVER['REMOTE_ADDR'] predefined variable.

Yes I knew it, but it is not the solution, because I would have to implement if
statement
in all of subpages

M.

Feb 3 '08 #5
MZ wrote:
>RTFM on the $_SERVER['REMOTE_ADDR'] predefined variable.

Yes I knew it, but it is not the solution, because I would have to
implement if statement
in all of subpages

M.
That's right. That's why it's better to do it at the server level.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 3 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Ross | last post by:
I sometimes place a sidebar on a Web page, using the following: ..sideright { float: right; background-color: #fff; width: 40%; font-size: 90%; text-align: justify; margin-left: 1em;...
14
by: laurence | last post by:
I am implementing a comprehensive image-map generator utility, so have been studying W3C HTML 4.01 Specification (http://www.w3.org/TR/html4/struct/objects.html#h-13.6) on image maps (among other...
5
by: John Perks and Sarah Mount | last post by:
When handling resources in Python, where the scope of the resource is known, there seem to be two schools of thought: (1) Explicit: f = open(fname) try: # ... finally: f.close()
12
by: news | last post by:
I'm having a heck of a time, and I'm hoping someone can take a quick look and see if they can recognize what might be the problem and point me the right direction. My blog page:...
3
by: E | last post by:
I have 2 aspx pages... neither of which do anything out of the ordinary. One of the pages automatically generates this block of code when viewed at the client:...
2
by: CodeSlayer | last post by:
Hi all, This one really has me and the other .Net developers at my work stumped. I have an application that is doing the following: 1 - attempt to validate that user can create a windows task...
4
by: Alex Maghen | last post by:
When I do this in my page... ClientScript.RegisterStartupScript(this.GetType(), "SomeScript", "alert(\"Hi there\");"); it doesn't work AND when I view source, the alert() line is dumped into the...
11
by: totalstranger | last post by:
I have a check box with let's say 20 elements. I would like to have it align as 4 columns, 5 rows. Without using a table and using understandable CSS is there any way to make the check boxes align...
3
by: Richard | last post by:
Again, new to DB2. Trying to do something I can do in Sybase ASE. In any Sybase SQL script I can use /* */ to comment out a block of code. In the DB2 9.0 SQL Reference Manual V1 it says: ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.