Restrict client request to site by IP address. If the request is?
Hi all,
I have a requirement like as follows.
Requirement:
Restrict client request to site by IP address. If the request is from specific IP address. I mean here standard bloack address (Eg: 127.0.0.1,default subnet mask...)
I am looking for alread predefined method from java libs....Can please any one help on this issue.
regards
prasad.nadendla
Use a SecurityManager and a .policy file that only grants SocketPermissions for the required hosts.
Similar Messages
-
Restrict visitors to a site by IP address
Not sure if this is the right place to ask this question but thought I would give it a shot.
I need to build a small website to collect entries to a sweepstakes. My client wants me to use an Internet application form service (Wufoo.com) to create the entry form that visitors will fill out for a chance to win a prize. Which is fine, I've used Wufoo many times but Wufoo will not do this thing I need to accomplish.
Just for the sake of offering all information, the site is hosted using a Virtual Private Server. (Debian 4 OS, Apache Web Server 2.0, PHP 5.0.4, MySQL 4.1.14)
Since my client wants to only allow visitors within the United States to enter the sweepstakes I thought it would be best to somehow only allow visitors with US IP addresses access to that page and also redirect visitors that attempt to access the form/entry page and send them to another page that says, sorry but the sweepstakes is for US visitors only.
There are probably a ton of ways to accomplish this but I can't figure it out.
In the interest of brevity, I won't list what I've learned, tried, and certain specific questions I've had because maybe someone out there has a solution that is completely different from what I've found. Thanks in advance.There are two kinds of potential visitors to your site. 1) Those that know how the low-level IP works and 2) those that don't. You only care about people in group 2 because you are powerless to stop those in group 1. All you can do with those in group 1 is to refuse to send the winnings to a non-US address.
For group 2, you just need to be a bit sneaky. Record the name, address, and IP address of every visitor. Allow non-US addresses on the entry form. Then, after they click submit, record the address and IP address. Verify that the provided address is in the US. If not, display the "sorry" page.
There may be some people who are in group 2 but are on their way to group 1. At this point, they may try to enter a US street address but you will refuse to accept their entry because you have already flagged their IP address as being non-US.
I think is this your easiest, most fool-proof way of doing what you want. Let your users self-select. You can find out which IP addresses are assigned to non-US locations, but you would need to use the full ARINdatabase. It is possible, but difficult. Plus, there are lots of US-based proxies available that would defeat any ARIN or Geolocation scheme because they are, in fact, in the US. -
I have the query set-up and it works fine, but I cannot map it to anything, I suppose because it is an object and not a simple string. I think I get the option to Map it to related items or configuration items in the Query itself maybe, I seem to remember
seeing that, but I can not map it to anywhere on the Service Request or Activities in the Request Offering Set-Up.
However, looking at my Update Object Activity in My Runbook, I do not see how to add a person to a review activity anyway.
Can someone enlighten me?
I do not know Powershell well enough to use it with SCSM or Orchestrator yet, and I am not even sure if we have SMLets so keep it simple if possible.
Thanks for any assistance!More info:
How to add a Reviewer to a Review Activity through Orchestrator
http://www.scsm.se/?p=895
Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Only one delivery address on the Request for Quotation!
Hello,
Our company is located in a remote area as it is a mining company. For that reason the delivery is done in two steps:
First to one of of our Freight forwarder depending on if we want the item to be ship via ship or by air. Those Freight fwder are set up in the system as storage locations. Once they received the item they fwd it to the mining site.
But the probleme is that on our PReq we have two line items with two different storages location. But when we print the RFQ it is showing only one delivery address where as the items have to be delivered to two difference addresses. How can we solve this problem.Hi, tecmec
I would recommend making sure that the BIOS and all other drivers are up to date to make sure that the problem doesn't lie there. But if everything else on the dock works except that port, then I would be inclined to think that the dock has an issue with that port. All the ports that you can test on the computer itself work properly, correct?
Best,
Adam
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it. -
Hello,
We are doing a 2-way version control sync between TFS 2013 servers.
TFS A - Project A is getting synched with TFS B - Project A.
TFS A - Project A has got all the code and files, whereas TFS B - Project A is empty.
Previously we have synced TFS 2013 projects across servers with out any error or issues. Today we came across an issue (check log at end of post) and hope Microsoft can
provide some guidance on this. Following is the problem we are facing today:
We have configured the TFS Integration platform tool for VC - 2 way sync and started the migration. Current
status is that the discovery, analysis is complete and migration is half way when I started to get such errors
(check log at end of post) .
Note that the migration has not stopped...
After doing some research and googling I understand that the reason for this error is that by default if
an individual file transfer cannot complete 16MB in 5 minutes, the operation will fail. And the solution to this is to modify
chunk size in the file of "TfsMigrationShell.exe.config". I have few questions regarding this...
Question 1:Is
above understanding and solution correct? I also notice that this error appears for every huge file (approx >30MB), is there any timeout setting at the target server? Is this something to be changed at the Tool level config or the Target IIS level
config?
Question 2: Suppose
I do not change the config setting, then huge files are skipped due to this error. However, after the migration of the other files is finished, then, will the tool retry to sync the skipped (huge) files? Or has it skipped them forever?
Question 3:
Suppose I modify
chunk size in the file of "TfsMigrationShell.exe.config", then, which of the following do I need to do (give me the best solution among the 3 below)
a) Do I need
to restart the migration (by deleting and recreating the project on the 2nd TFS Server and re-starting migration)?
b) Do
I need to create a new configuration and restart migration?
c) Do I need to restart the sync service?
The concern here is that we have got 3 more jobs (TFS
Integration tool configurations) running parallelly that
is syncing Work Items & VC of other TFS projects and want to make sure that restarting the TFS Integration Job Service will not have any negative impact on the other jobs as well as no negative impact on the current migration job...
Microsoft, Please advice. Thanks!
Log:
[1/21/2015 10:55:39 AM] AsyncUploadFileState.Completed -- caught and converted:
[1/21/2015 10:55:39 AM] Microsoft.TeamFoundation.VersionControl.Client.VersionControlException: C:\TfsIPData\10\ications\MDM Folder\Binaries\v9.5\DMS Web Service Release 1.5.zip: The request was aborted: The request was canceled. ---> System.Net.WebException: The request was aborted: The request was canceled. ---> System.IO.IOException: Cannot close stream until all bytes are written.
[1/21/2015 10:55:39 AM] at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting)
[1/21/2015 10:55:39 AM] --- End of inner exception stack trace ---
[1/21/2015 10:55:39 AM] at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting)
[1/21/2015 10:55:39 AM] at System.Net.ConnectStream.System.Net.ICloseEx.CloseEx(CloseExState closeState)
[1/21/2015 10:55:39 AM] at System.Net.ConnectStream.Dispose(Boolean disposing)
[1/21/2015 10:55:39 AM] at System.IO.Stream.Close()
[1/21/2015 10:55:39 AM] at System.IO.Stream.Dispose()
[1/21/2015 10:55:39 AM] at Microsoft.TeamFoundation.VersionControl.Client.FileUploader.UploadChunk(FileStream fileContentStream, Int64 end)
[1/21/2015 10:55:39 AM] --- End of inner exception stack trace ---
[1/21/2015 10:55:39 AM] at Microsoft.TeamFoundation.VersionControl.Client.Workspace.EndUploadFile(IAsyncResult asyncResult, PendingChange& pendingChange, Byte[]& uploadedContentBaselineFileGuid, Int64& uncompressedLength)
[1/21/2015 10:55:39 AM] at Microsoft.TeamFoundation.VersionControl.Client.Workspace.AsyncUploadFileState.Completed(IAsyncResult asyncResult)Hi Charles,
I have been doing in depth research and testing of this and here are my findings:
Replies to your points:
1) It failed with UploadChunkSize value change. Tried 1MB, 500KB, even 100KB. Fails with same error! Is there any other setting we can change for the timeouts at the target TFS server also?
2) The huge files are not skipped. The migration loops on the failed files and doesn't continue to process the next lot of files. So the migration is blocked on the huge files.
3) OK. Thanks.
Please see below the finding on when migration succeeds and when it fails:-
Scenario 1:
a) Where Migration fails:
TFS A is in India and TFS B is in UK. Both TFS are on different domain. Migration tool is installed on same machine as TFS A. There is a firewall that allows the access from TFS A machine to TFS B machine. The migration tool fails to work in this scenario
when it encounters a file size approx > 8MB. I tried setting the UploadChunkSize value to 100KB. Yet it failed!
b) Where Migration works:
However, if the files are approx less than 3MB then the migration works without any errors.
Scenario 2 where TFS migration tool works:
TFS A is in India and TFS B is also in India (located closeby). Both TFS are on different domain. Migration tool is installed on same machine as TFS A. There is no firewall in this case. No changes were made to UploadChunkSize value and files with size
of 10's and 100's of MBs got synced without any issue.
Questions
Question 1: Can we conclude now that there is some issue with the firewall or network in case of scenario 1? As mentioned above Scenario 1 works if file size is less then approx 3MB.
Question 2: Is there any timeout setting on the Target TFS server which can be set so that it waits for the file without timing out?
Thanks for any help... -
Need to get rid of the request
Hi
i am working in a support project
I have data getting populated from ODS to Cube and all the request are getting aggregated and Compressed.
but yesterday the load had worong postings in ECC . and now the request is loaded to cube and compressed .
the client is asking me to delete the request but i as per my understanding the request cant be deleted.
please help in this
Sandy KingHi,
when you do reverse posting of the compressed data you can get correct data as desired.
me as explained above let me give a clear example how it works
Example
Plant amount
3005 100 (single request
3005 200(single Request)
after compression
the the value will be
Plant Amount
3005 300
Now the customer asks that the data which was posted recently is wrong ( that menas plant 3005 and 200 is wrong)
Now the request is already compressed we can onlly eliminate this by using reverse posting
after following the steps of reverse posting as above
the request will be deleted internally like as below
corrected data will be
Plant Amount
3005 100
3005 200
3005 -200
after reverse posting the request gets nullifies with the negative value and make the data as required.
but during reverse posting make sure that you select a correct request ID so that you dont mess up the data
Regards
santosh -
Multiple weblogic instances using IIS to proxy the requests
I have a need to run multiple weblogic instances using IIS as the web
server.
Does anyone know if this is possible. I am aware and have been able to run
multiple weblogic servers as an nt service,
but in those cases weblogic was being called and IIS was being bypassed.
Now the user base wishes to use IIS to proxy the requests.
I have been able to set IIS to forward using the .jhtml and .jsp file
extensions to the iisproxy.dll, but have not been able to forward these
requests to multiple weblogic instances. When the request is made it is
only looking in the first instance of weblogic for the request.
Is it possible to use weblogic and IIS with two or more weblogic instances,
without weblogic acting as a webserver.
I dont believe this is possible but I need to find out if this really is the
case.
Thanks for any help you can provide.
EdYou need run each IIS web server instance in its own memory space. This can
be set through the Management Console for IIS.
Keith
Mike Kendzierski <[email protected]> wrote in message
news:[email protected]..
We tried to do this & Weblogic doesn't support this config. We opened upa
support call with them regarding this, but there is a problem with the way
that IIS & NT proxies .JSP pages to the weblogic servers. It's very
unstable this way & I wouldn't recommend this config.
We switched to Apache with virtual hosts to do this & it works fine. It's
probably not the answer you want to hear, but it works very well.
If you have any questions, just ask away.
"Ed" <[email protected]> wrote in message
news:3a296c2d$[email protected]..
We are using IIS4 with weblogic 4.5.1 sp11,
I thought I read someplace, their was a problem between wls 4.5.1 sp7
and
wls 5.1 where it didnt look in the folder where the dll was.
I will give it a try on monday.
Peter Mergaerts wrote in message <[email protected]>...
We tried to do the same thing.
We copied iisproxy.dll and iisproxy.ini to server1 and let IIS use this.dll
instance for proxying .jsp etc.
We copied the iisproxy.dll and iisproxy.ini to server 2, renamed
iisproxy.dll to iisproxy2.dll (to make sure another instance was used)
and
let the second iis site use iisproxy2.dll, but that didn't worked. (It
doesn't read the iisproxy.ini file located in the same directory as the.dll
file, altough in the manual it says it checks this first.) Now, I thinkit's
possosible to use several iisproxy.dll's as long as you rename it so
each
get it's own instance, the only problem is that each .dll doesn't readthe
correct iisproxy.ini file. (BEA, is this for SP7?)
Regards,
Peter Mergaerts -
Error while transporting the request from quality to production of BI
Dear all,
When transporting a request (which contains elements of correction - in Bex designer) from quality to production of BI the following error is displayed and the request transport fails. Can the experts throw some light on this.
Execution of programs after import (XPRA)
Transport request : RBDK904992
System : RBP
tp path : tp
Version and release: 372.04.04 700
Post-import methods for change/transport request: RBDK904992
Post-import method RS_AFTER_IMPORT started for ELEM L, date and time: 20080406140407
Start of the after-import method RS_ELEM_AFTER_IMPORT for object type(s) ELEM (Activation Mode)
Error when activating element EY2CXLKXP5X5AY0RQ2XKN9EX8
Element 5E4II2344I3JG4R6ACMYQ441Z is missing in version M
Start of the after-import method RS_ELEM_AFTER_IMPORT for object type(s) ELEM (Delete Mode)
Errors occurred during post-handling RS_AFTER_IMPORT for ELEM L
The errors affect the following components:
BW-WHM (Warehouse Management)
Post-import methods of change/transport request RBDK904992 completed
Start of subsequent processing ... 20080406140407
End of subsequent processing... 20080406140408
Execute reports for change/transport request: RBDK904992
Reports for change/transport request RBDK904992 have been executed
Start of................ 20080406140408
End of.................. 20080406140408
Execution of programs after import (XPRA)
End date and time : 20080406140408
Ended with return code: ===> 8 <===
Thanks in advance.
Regards,
M.MHi,
First try to figure out the object type from the text obtained by following steps above.
Goto Development server ,create fresh request (using transport connection) , transport to QA and then in to production.
After successful transfer of the request for this object ,try to reimport the request which caused error and it should go smoothly without any error.
Hope it helps.
Regards
Mr Kapadia -
Change the status of the request from Released to un released.
Dear all
Some requests were created with no target system and were released.
these requests are to be transported to our Production System.
Is there any other way to transport these requests?
things I tried.
1. I tried to find the files in Cofile and datafile but could not find in trans folder.
2. tried to add the objects to new requests but facing problem while adding the key to the request.
Regards
MaheshHi,
you have created the requests as local requests, it means you haven't mentioned Target system it will be treated as local requests so it wont create Cofiles and Datafiles.
and you can use the option Transport of copies and check. actually u can't change the request from the Rleased to Unreleased.
you have to create new request that's the only way if your not able to copy the objects to the new request or if the transport of copies wont work.
-Srinivas.korva -
Set request attributes from the request attributes
Using struts chaining actions.
When using chaining the requestAttributes are lost.
Is there a way to get all the request attributes and set them back to the request again?
if so how to do this?
Thanks.Looks like nobody knows :(
It seems odd that nobody's tried to get InputSelectLOV or DataHandler working with a Struts app...
... anyway, on to finding out why the thing's throwing my releasemode away. This really is very like swimming through treacle :( -
Employee is not able to Edit the Request if it is Rejected by the Approver.
Hi,
we are working on EHP5 , ECC 6.0 . We are implementing claims and reimbursements . In our process if the employee raises the claim request in the portal and the approver rejects the claim request , employee is not able to edit the request in the portal . So please suggest the solution for this .
Thank you
lokeshHello Lokesh,
The edit feature of claims is on the basis of status. Approved & Rejected claim requests cannot be edited. The approver has got the option to edit the claimed amount on basis of the proof attached.
Hence the approver can edit and then decide to approve or reject. But employees in case of any
rejection of claims needs to reapply with a new claim.
Regards,
Pankaj -
Error when updating the Request again after deleting it .
Hi
Actually I deleted few requests(some red ,some green) to load the request in order in the ODS for each date. While again updating the same requests from the PSA,
I am getting this error in the monitor.
"Deletion of M version from ODS terminated"
What should i look for ?
Please advise,
Thanks and regards,
Priya.
Few lines from the monitor:#
Subseq. processing (messages) : Missing messages
Missing message: Subseq. processing completed
Deletion (messages): Errors occurred
Delete running: ODS ZCCD0003 , from 71504 to 71938
Deletion of request 71938 from ODS ZCCD0003 successful
Deletion of request 71938 from ODS ZCCD0003 successful
Deletion of request 71938 from ODS ZCCD0003 successful
You want to delete request 0000057118 , but it is already updated
Deletion of request 71938 from ODS ZCCD0003 successful
Deletion of request 71876 from ODS ZCCD0003 successful
Deletion of request 71504 from ODS ZCCD0003 successful
Deletion of M version from ODS ZCCD0003 completed successfully
Delete running: ODS ZCCD0003 , from 71504 to 71876
You want to delete request 0000057118 , but it is already updated
No data request exists for request number 71876
No data request exists for request number 71504
No data request exists for request number 71,504
<b><i>Deletion of M version from ODS terminated</i></b>
Deletion of M version from ODS ZCCD0003 completed successfully
Delete running: ODS ZCCD0003 , from 71504 to 71876
You want to delete request 0000057118 , but it is already updated
No data request exists for request number 71876
No data request exists for request number 71504
No data request exists for request number 71,504
Deletion of M version from ODS terminated
Deletion of M version from ODS ZCCD0003 completed successfully
Delete running: ODS ZCCD0003 , from 71504 to 71876
Deletion of request 71876 from ODS ZCCD0003 successful
Deletion of request 71504 from ODS ZCCD0003 successful
Error :Deletion of M version from ODS terminatedHi Roberto,
I just want to know in SM50 how do we recognise that the process is running for what request.
Everytime I see only this status:
0 DIA 2004 Running Yes SAPLTHFB 400 Disdgnl01.
What does this report do? and how do we understand the
details ......
Can i have some link as well where I can get more information about the process overview.
Thanks a lot for all your help,
Priya. -
I try to update my iPod. " not eligible for the requested build"
I try to update my ipod touch and it says that it isnt eligible for the requested build
This device is not eligible for the requested build: Also sometimes displayed as an "error 3194." If you receive this alert, update to the latest version of iTunes. Third-party security software or router security settings can also cause this issue. To resolve this, follow Troubleshooting security software issues.
Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. First you must uninstall the unauthorized modification software from the computer, then edit out the "gs.apple.com" redirect from the hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart. Also, using an older or modified .ipsw file can cause this issue. Try moving the current .ipsw file, or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
Above from:
http://support.apple.com/kb/TS3694 -
[10.1.3] A new way to place Principals in the Request?
Hi,
since 10.1.3 the usage of custom UserManager-Implementation is not possible anymore. Is there another way to place an own Principal-Implementation into the request except using a Filter which wraps the request and places another Principal-Implementation into it? The how-to on http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/howtocustomjaasprovider/doc/howtocustomjaasprovider.html does not cover this topic and I haven't found another way yet :(
Thanks,
Stefan
Message was edited by:
[email protected]So the problem is just being scheduled into the future but I'll still have to deal with it. I would prefer to get a solution asap so I don't need to think about it in a future release ;)
I wonder if there's something like a specific group I have to put the principal into so the OC4J will take my principal from this group (like the CallerPrincipal-group in JBoss) and put this one into the request.
Edit:
I just noticed when I'm specifying our custom UserManager I get this on deployment:
Caused by: java.lang.NullPointerException
at com.evermind.security.IndirectUserManager.getGroup(IndirectUserManager.java:101)
at com.evermind.security.IndirectUserManager.getGroup(IndirectUserManager.java:101)
at com.evermind.server.deployment.EnterpriseArchive.initDefaultSettings(EnterpriseArchive.java:1296)
at com.evermind.server.deployment.EnterpriseArchive.<init>(EnterpriseArchive.java:294)
at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:412)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:187)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
... 9 moreMessage was edited by:
[email protected] -
CUP 5,3 - More Approvers at one stage (who has the request?)
Hello
If I have a request where I order more Roles, there will be more Approvers that have to approve the request.
But how can the Admin see how still need to Approve?
I can't find a way to see this?
thank you
Kristian MadsenWithin the Access Management section, go to the Access Request Administration sub section and search for the request.
Once you have found your request, select it and click the Audit Log button. This should list out where and who to the request has flowed to and what actions were taken by the respective people per stage and if it is still open, which stage it is still at. It will take a while to decipher what is written in the log, but with a good idea of how the workflow is set up, you should be ok in understanding the log.
Maybe you are looking for
-
How can I set up a page so it will copy a crossword puzzle with dark background
I can't print crossword puzzles for my students. I need to know how to make the background show up. Chrome can't do it or safari, but I think there is supposed to be a way to do it on firefox. I'm using crosswordpuzzlegames.
-
Have an Iphone 5 and had to restore. I recieved text message and replied after restore but they are no longer in thread.I did not erase. past messages still exist. Did sending party delete them? If so can I retreave them?
-
Table Needs 1 Pt. Side Strokes that End in Solid Circle Caps
I am working on a long document that has numerous (over 100) callout text boxes that must flow with the text. Because there will be a number of edits in the copy, I have put that text into a 1-column/1-row table. This allows the callout text to keep
-
Does the MBP Late 2006 output 1080p @ 24 Hz?
I'm planning to hook up my MBP Late 2006 model to a Panasonic plasmascreen. Since the tv supports 1080p/24p Im wondering if the MBP can output 1080p @ 24 Hz? Im planning to use a DVI-I -> HDMI cable. Thanks in advance MacBook Pro gen2,2, 15" (Late 20
-
I GET AN ERROR WHEN CHECKING FOR USER INPUT VALIDATION
if (choiceBrand.length()==0) System.out.println("No selection was made, " ); System.out.println("We will price the Frigidaire."); I GET THIS ERROR Green_1.java:55: char cannot be dereferenced if (choiceBrand.length()==0)