friends, I am an Ubuntu 12.04 user and i want to any user can't send email from gmail in my pc, because they sending abuse mails from their gmail account but sending from my pc. So, please help me and suggest the right way.
One method to prevent any access to gmail.com is to reroute it in your hosts file. This will redirect any requests to gmail.com to resolve to your local machine and not the external internet.
The method is reversible, so that you can toggle the setting when you need to use Gmail yourself.
If you now try to access gmail.com in your browser, you will find it does not load.
To disable this routing rule, so that you can access Gmail yourself, follow the same directions as above, but simply prefix the custom rules you added previously with a
Adding or removing the
*help on editing your hosts file in Ubuntu and other OS's may be found here