Hai
I heard about external access of a web site using curl by the following code
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,'http://example.com');
$buffer=curl_exec($curl_handle);
curl_close($curl_handle);
I want to protect my web site from this external access. I am using Php. how will I protect my web site? Does any one know?
Windows 7 Pro x64, my external hard drive is a Western Digital Carviar Black.
The hard drive is connected via USB (tried all my 2.0 and 3.0 ob my Gigabyte GA-X58A-UD7) but once I initialized it in the "disk management" (or whatever the proper term is; I'm using a German edition of Windows) I have to assign it a manual drive letter. Otherwise it doesn't show up.
I'm confused because usually externally connected drives (be it USB sticks or real hard disks) just show up as "Removable media", but this one doesn't.
Is this OK/expected? Will there be troubles when I go to another Windows computer?
I formatted the drive with quick format and NTFS. I changed the permissions to have read/write for "Everyone" on that drive.
thanks
it might sound very basic question but i need some help.
I have lenovo Ideapad y560p which offers a maximum resolution of 1366px x 768px.
Now i am planning to buy an external monitor, and i short listed some FULL HD resolution monitors, but it is my understanding that even with FULL HD, i would only achieve the best resolution my laptop supports. Is it true?
And also if this is the case, should i really go for an HD monitor or settle down with a lower resolution version? 2ndly, is there any way to increase resolution with simple upgrade? or it is not possible without voiding the warranty??
My application starts up another application. whereby, i want to remove the title bar of the application which is started using c#.
What is the feasibility and how ?
I have an application running called AppFS. This application has an ext2 filesystem just attached to the end of the file (it's positioned so that the application binary exists in a 1MB spacing area, followed by the ext2 data).
Now I've got FUSE embedded in the program and I've managed to extract the filesystem out of the application data into a temporary file so that FUSE can mount / use it.
The problem I have now is writing the temporary file back into the application file. I get "Text file busy" presumably because the application has locked itself and won't let writes occur.
Is there a way I can force the file to become unlocked so I can write data to it? (It's important to note that I'm not changing the application binary area - just rewriting the ext2 component.) It needs to be unlocked without requiring root permissions (unlocked by the same user who started the application).
in java, you can use File.listRoots() to get all drives in the system. I'm looking to get only the external drives, i.e. USB drives, external hard disks, optical drives, floppy etc'.
is there any way to do it in java? if not, native c++ code would be good as well. in that case, i need both windows and linux code
thanks
i m getting article description from a user in fckeditor where he can paste the links too
i want to detect my own site links and external links
so that i can make my own site links to open in same browser
and external have a nofollow attribute...
I have an HTTP server running on 127.0.0.1:8000. How can I use iptables or something to route external traffic to it? I want to be able to access my.ip.addr:8000 from my browser.
iptables -A PREROUTING -i eth0 -p tcp --dport 8000 -j REDIRECT --to-ports 8000
does not help
EDIT:
To test whether or not this works I am using the following node.js script:
// Load the http module to create an http server.
var http = require('http');
// Configure our HTTP server to respond with Hello World to all requests.
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World\n");
});
// Listen on port 8000, IP defaults to 127.0.0.1
server.listen(8000, "127.0.0.1");
// Put a friendly message on the terminal
console.log("Server running at http://127.0.0.1:8000/");
Is it possible to determine this at runtime?
contents of external.js:
function x() {
//can i get the path/name of the html file that included this js file?
//which is test.html
}
contents of test.html
script src="external.js"