Prevent URL to be seen in network console in 'Chrome/Firebug'

Can you make someone to visit a HTTPS URL (for example https://graph.facebook.com/Enrique') via an iFrame/Script tag, and the visitor still don't know what was the URL which got downloaded even if they check the 'Network Console' or something,

I'm free to use PHP 'headers' of something like that, but I would like to stay away from 'cURL' at server side, 'cause all I want is to make the visitor visit the URL with his own proxy to execute that url not my server(for preventing server load)

Answers


Nope. There are methods of obfuscating it to make it harder to understand, but nothing bulletproof. Perhaps you could try URL encoding the text parts. For example:

https://graph.facebook.com/%45%6e%72%69%71%75%65

(I think chrome automatically replaces unnecessarily url-encoded characters.)

Here's some javascript that does this transform, I'm sure you could work up something similiar in PHP.

function percentEncodeAllChars(str) {

    var strEncoded = '';

    for(var i = 0, ilen = str.length; i < ilen; i++) {

        var strHex = parseInt(str.charCodeAt(i)).toString(16);
        strEncoded += '%' + strHex;
    }

    return strEncoded;
}

function doEncode() {

    var strInput = document.getElementById('encode').value;

    document.getElementById('result').innerHTML = percentEncodeAllChars(strInput);
}

Source


No; that's completely impossible.


Need Your Help

Unit testing methods in the Presenter, MVP

c# unit-testing c#-4.0 moq mvp

Im trying to test a method which composes a collection of controls. It calls two methods:

Permalinks with Ruby on Rails (dynamic routes)

ruby-on-rails routing routes

I am currently developing a blogging system with Ruby on Rails and want the user to define his "permalinks" for static pages or blog posts, meaning:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.